зеркало из https://github.com/github/ruby.git
[PRISM] Enhance syntax error message extraction in test_literal_suffix btest
This commit is contained in:
Родитель
ced6aff206
Коммит
4ef99905a6
|
@ -47,8 +47,8 @@ assert_equal '10000000000000000001/10000000000000000000',
|
|||
'1.0000000000000000001r'
|
||||
|
||||
assert_equal 'unexpected local variable or method, expecting end-of-input',
|
||||
%q{begin eval('1ir', nil, '', 0); rescue SyntaxError => e; e.message[/(?:\^~*|\A:(?:\d+:)? syntax error(?! found)) (.*)/, 1] end}
|
||||
%q{begin eval('1ir', nil, '', 0); rescue SyntaxError => e; e.message[/(?:\^~*|\A:(?:\d+:)? syntax error,) (.*)/, 1]; end}
|
||||
assert_equal 'unexpected local variable or method, expecting end-of-input',
|
||||
%q{begin eval('1.2ir', nil, '', 0); rescue SyntaxError => e; e.message[/(?:\^~*|\A:(?:\d+:)? syntax error(?! found)) (.*)/, 1] end}
|
||||
%q{begin eval('1.2ir', nil, '', 0); rescue SyntaxError => e; e.message[/(?:\^~*|\A:(?:\d+:)? syntax error,) (.*)/, 1]; end}
|
||||
assert_equal 'unexpected local variable or method, expecting end-of-input',
|
||||
%q{begin eval('1e1r', nil, '', 0); rescue SyntaxError => e; e.message[/(?:\^~*|\A:(?:\d+:)? syntax error(?! found)) (.*)/, 1] end}
|
||||
%q{begin eval('1e1r', nil, '', 0); rescue SyntaxError => e; e.message[/(?:\^~*|\A:(?:\d+:)? syntax error,) (.*)/, 1]; end}
|
||||
|
|
Загрузка…
Ссылка в новой задаче