[ruby/prism] Match CRuby error message for unknown regexp options

73669b59f6
This commit is contained in:
Kevin Newton 2024-06-11 08:24:43 -04:00 committed by git
parent d6b1822f22
commit 47322b592a
2 changed files with 3 additions and 3 deletions

View file

@ -2134,14 +2134,14 @@ module Prism
def test_regular_expression_with_unknown_regexp_options
source = "/foo/AZaz"
errors = [["unknown regexp options: AZaz", 4..9]]
errors = [["unknown regexp options - AZaz", 4..9]]
assert_errors expression(source), source, errors
end
def test_interpolated_regular_expression_with_unknown_regexp_options
source = "/\#{foo}/AZaz"
errors = [["unknown regexp options: AZaz", 7..12]]
errors = [["unknown regexp options - AZaz", 7..12]]
assert_errors expression(source), source, errors
end