summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2022-12-19 22:32:48 +0900
committerYusuke Endoh <mame@ruby-lang.org>2022-12-24 03:19:45 +0900
commita8485291bbdbe3b8e867f59d2d77b7a22732e5a6 (patch)
tree6e213aea6f60d657f5f755080fe7099a169cf5a1
parente8b0180974a1f51ae3894d3e055461a1037c778d (diff)
test/test_trick.rb: Add tests for TRICK 2022 entries
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/7014
-rw-r--r--test/test_trick.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/test_trick.rb b/test/test_trick.rb
index e37bda2efe..763f493899 100644
--- a/test/test_trick.rb
+++ b/test/test_trick.rb
@@ -189,3 +189,26 @@ END
assert_in_out_err(["-W0", "-c", src], "", ["Syntax OK"])
end
end
+
+class TestTRICK2022 < Test::Unit::TestCase
+ def test_01_tompng
+ src = File.join(__dir__, "../sample/trick2022/01-tompng/entry.rb")
+
+ # only syntax check because it requires matrix
+ assert_in_out_err(["-W0", "-c", src], "", ["Syntax OK"])
+ end
+
+ def test_02_tompng
+ src = File.join(__dir__, "../sample/trick2022/02-tompng/entry.rb")
+
+ # only syntax check because it works as a web server
+ assert_in_out_err(["-W0", "-c", src], "", ["Syntax OK"])
+ end
+
+ def test_03_mame
+ src = File.join(__dir__, "../sample/trick2022/03-mame/entry.rb")
+
+ # TODO
+ assert_in_out_err(["-W0", "-c", src], "", ["Syntax OK"])
+ end
+end