summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2024-05-15 11:40:52 -0400
committerKevin Newton <kddnewton@gmail.com>2024-05-15 12:49:45 -0400
commitcd8b28f0e7661498bbae259982809fc7f50e0581 (patch)
treefc82f5861a1077c9d05c56c42552ff8c1c7cddc4 /test/ruby
parentbe239cc7bc50d3882bc3dec2bbe1f4f0c1e797fa (diff)
[PRISM] Enable test_location_of_invalid_token
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_parse.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb
index c77cdc5673..0035f77957 100644
--- a/test/ruby/test_parse.rb
+++ b/test/ruby/test_parse.rb
@@ -1394,7 +1394,7 @@ x = __ENCODING__
end
def test_location_of_invalid_token
- assert_syntax_error('class xxx end', /^ \^~~\Z/)
+ assert_syntax_error('class xxx end', /(^|\| ) \^~~(?!~)/)
end
def test_whitespace_warning