Skip to content

Commit

Permalink
test/test_trick.rb: Add tests for TRICK 2022 entries
Browse files Browse the repository at this point in the history
  • Loading branch information
mame committed Dec 23, 2022
1 parent e8b0180 commit a848529
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions test/test_trick.rb
Expand Up @@ -189,3 +189,26 @@ def test_05_tompng
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

0 comments on commit a848529

Please sign in to comment.