func TestBox2dBullet(t *testing.T) { bullet := state.Bullet{ Point: state.Point{X: 10, Y: 20}, Sized: state.Sized{Width: 15, Height: 40}, Angle: 3} Convey("Proper Box Bullet", t, func() { So(bullet.AngleDegrees(), ShouldAlmostEqual, bullet.Angle, .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) }) }