We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8aaaf6 commit e14251dCopy full SHA for e14251d
test/test_rubyhop.rb
@@ -98,3 +98,23 @@ def test_offscreen_eh
98
assert_equal true, @player.offscreen?
99
end
100
101
+
102
+class TestHoop < MiniTest::Test
103
104
+ def setup
105
+ @hoop = Hoop.new
106
+ end
107
108
+ def test_initialize
109
+ assert_equal 0, @hoop.x
110
+ assert_equal 0, @hoop.y
111
+ assert_equal true, @hoop.active
112
113
114
+ def test_update
115
+ @hoop.update 10
116
+ assert_equal -10, @hoop.x
117
118
119
120
+end
0 commit comments