diff options
Diffstat (limited to 'test/ruby/test_parse.rb')
-rw-r--r-- | test/ruby/test_parse.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb index 1d756441f8..8b7c8f0e5b 100644 --- a/test/ruby/test_parse.rb +++ b/test/ruby/test_parse.rb @@ -1366,6 +1366,10 @@ x = __ENCODING__ assert_valid_syntax('class while true; break Object end::Kernel; end') end + def test_escaped_space + assert_syntax_error('x = \ 42', /escaped space/) + end + =begin def test_past_scope_variable assert_warning(/past scope/) {catch {|tag| eval("BEGIN{throw tag}; tap {a = 1}; a")}} |