mirror of
https://github.com/ruby/ruby.git
synced 2025-08-26 22:45:03 +02:00
[ruby/prism] Match CRuby error message for unknown regexp options
73669b59f6
This commit is contained in:
parent
d6b1822f22
commit
47322b592a
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue