diff --git a/test/test_helper.rb b/test/test_helper.rb index 8015be14..787f819d 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -106,17 +106,15 @@ def assert_syntax_tree(node) refute_includes(json, "#<") assert_equal(type, JSON.parse(json)["type"]) - if RUBY_ENGINE != "truffleruby" - # Get a match expression from the node, then assert that it can in fact - # match the node. - # rubocop:disable all - assert(eval(<<~RUBY)) - case node - in #{node.construct_keys} - true - end - RUBY - end + # Get a match expression from the node, then assert that it can in fact + # match the node. + # rubocop:disable all + assert(eval(<<~RUBY)) + case node + in #{node.construct_keys} + true + end + RUBY end Minitest::Test.include(self) diff --git a/test/translation/parser_test.rb b/test/translation/parser_test.rb index 1df98f47..699cc43e 100644 --- a/test/translation/parser_test.rb +++ b/test/translation/parser_test.rb @@ -95,7 +95,7 @@ class ParserTest < Minitest::Test ) end - if current_version < "3.2" || RUBY_ENGINE == "truffleruby" + if current_version < "3.2" known_failures.push( "test_if_while_after_class__since_32:11004", "test_if_while_after_class__since_32:11014",