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