summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2024-05-15 11:25:13 -0400
committerKevin Newton <kddnewton@gmail.com>2024-05-15 12:49:45 -0400
commitcabc0e093cca984cd6edda0d070b70dc1c125363 (patch)
tree5f807adf74a8444951116876f6c9b6647a13e56c /test/ruby
parent901f4c3fb77968cd9cb2f1dc2d860cf936a2457d (diff)
[PRISM] Enable TestParse#test_unexpected_token_after_numeric
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_parse.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb
index bd6dabf2c9..1e39fbf72f 100644
--- a/test/ruby/test_parse.rb
+++ b/test/ruby/test_parse.rb
@@ -1336,9 +1336,9 @@ x = __ENCODING__
end
def test_unexpected_token_after_numeric
- assert_syntax_error('0000xyz', /^ \^~~\Z/)
- assert_syntax_error('1.2i1.1', /^ \^~~\Z/)
- assert_syntax_error('1.2.3', /^ \^~\Z/)
+ assert_syntax_error('0000xyz', /(^|\| ) \^~~(?!~)/)
+ assert_syntax_error('1.2i1.1', /(^|\| ) \^~~(?!~)/)
+ assert_syntax_error('1.2.3', /(^|\| ) \^~(?!~)/)
assert_syntax_error('1.', /unexpected end-of-input/)
assert_syntax_error('1e', /expecting end-of-input/)
end