diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 23c2503..932c6a3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,10 +23,10 @@ jobs: - run: ruby tests/miner.rb - run: ruby tests/painter.rb - run: ruby tests/paisley.rb - - run: ruby tests/polyglot.rb - run: ruby tests/rescue.rb - run: ruby tests/simple.rb - run: ruby tests/walker.rb + - run: ruby tests/recompiler.rb # Examples - run: ruby examples/experiments/Expression.rb - run: ruby examples/experiments/Function.rb diff --git a/tests/polyglot.rb b/tests/recompiler.rb similarity index 92% rename from tests/polyglot.rb rename to tests/recompiler.rb index 9863d48..facc7b2 100644 --- a/tests/polyglot.rb +++ b/tests/recompiler.rb @@ -1,6 +1,6 @@ require './tests/hypest' -class Polyglot < Test::Unit::TestCase +class Recompiler < Test::Unit::TestCase def intermediate_representation(parser) [ @@ -27,7 +27,7 @@ def compile(ir) Dot_Compiler, Markdown_Compiler ].each {|compiler| - next if compiler == Cyber_Compiler and not ir[6][0] + next if compiler == Cyber_Compiler and (not ir[6][0] or RUBY_ENGINE == 'ruby') compiler.compile_domain(*ir) compiler.compile_problem(*ir, nil) assert_equal(expected, ir)