Skip to content

Commit

Permalink
disable failing test on TruffleRuby (#883)
Browse files Browse the repository at this point in the history
  • Loading branch information
iliabylich authored Oct 26, 2022
1 parent b3c7efc commit 0aad2ec
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions test/test_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10881,12 +10881,14 @@ def test_invalid_escape_sequence_in_regexp__before_32
ALL_VERSIONS - SINCE_3_2)
end

def test_invalid_escape_sequence_in_regexp__since_32
assert_diagnoses(
[:error, :invalid_regexp, { :message => "invalid Unicode escape: /foo-\\u-bar/" }],
%q{/foo-\\u-bar/},
%q{},
SINCE_3_2)
if RUBY_ENGINE != 'truffleruby'
def test_invalid_escape_sequence_in_regexp__since_32
assert_diagnoses(
[:error, :invalid_regexp, { :message => "invalid Unicode escape: /foo-\\u-bar/" }],
%q{/foo-\\u-bar/},
%q{},
SINCE_3_2)
end
end

def test_forwarded_restarg
Expand Down

0 comments on commit 0aad2ec

Please sign in to comment.