func TestBox2dBase(t *testing.T) { bullet := state.Base{ Point: state.Point{X: 10, Y: 20}, Sized: state.Sized{Width: 15, Height: 15}} Convey("Proper Box Base", t, func() { So(bullet.AngleDegrees(), ShouldAlmostEqual, 0, .001) x, y := bullet.Position() w, h := bullet.Size() So(x, ShouldAlmostEqual, bullet.X, .001) So(y, ShouldAlmostEqual, bullet.Y, .001) So(w, ShouldAlmostEqual, bullet.Height, .001) So(h, ShouldAlmostEqual, bullet.Width, .001) }) }