diff options
Diffstat (limited to 'samples/05_mouse_move_paint_app/app/tests.rb')
| -rw-r--r-- | samples/05_mouse_move_paint_app/app/tests.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/samples/05_mouse_move_paint_app/app/tests.rb b/samples/05_mouse_move_paint_app/app/tests.rb deleted file mode 100644 index 925f321..0000000 --- a/samples/05_mouse_move_paint_app/app/tests.rb +++ /dev/null @@ -1,24 +0,0 @@ -# For advanced users: -# You can put some quick verification tests here, any method -# that starts with the `test_` will be run when you save this file. - -# here is an example test and game - -class MySuperHappyFunGame - attr_gtk - - def tick - outputs.solids << [100, 100, 300, 300] - end -end - -def test_universe args, assert - game = MySuperHappyFunGame.new - game.args = args - game.tick - assert.true! args.outputs.solids.length == 1, "failure: a solid was not added after tick" - assert.false! 1 == 2, "failure: some how, 1 equals 2, the world is ending" - puts "test_universe completed successfully" -end - -$gtk.tests.start |
