Changeset View
Changeset View
Standalone View
Standalone View
head/lang/ruby25/files/patch-test_ruby_test__parse.rb
| Property | Old Value | New Value |
|---|---|---|
| fbsd:nokeywords | null | yes \ No newline at end of property |
| svn:eol-style | null | native \ No newline at end of property |
| svn:mime-type | null | text/plain \ No newline at end of property |
| --- test/ruby/test_parse.rb.orig 2017-12-20 00:09:51 UTC | |||||
| +++ test/ruby/test_parse.rb | |||||
| @@ -746,6 +746,12 @@ x = __ENCODING__ | |||||
| end | |||||
| END | |||||
| end | |||||
| + assert_raise(SyntaxError) do | |||||
| + eval "#{<<~"begin;"}\n#{<<~'end;'}", nil, __FILE__, __LINE__+1 | |||||
| + begin; | |||||
| + x, true | |||||
| + end; | |||||
| + end | |||||
| end | |||||
| def test_block_dup | |||||