diff options
-rw-r--r-- | test/ruby/test_parse.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb index b9fa57f2c7..5b973a0901 100644 --- a/test/ruby/test_parse.rb +++ b/test/ruby/test_parse.rb @@ -1039,6 +1039,9 @@ x = __ENCODING__ assert_raise_with_message(SyntaxError, /^ \^~~\z/) do eval('0000xyz') end + assert_raise_with_message(SyntaxError, /^ \^~~\z/) do + eval('1.2i1.1') + end end def test_truncated_source_line |