summaryrefslogtreecommitdiff
path: root/test/ruby/test_parse.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-05-26 18:45:59 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-05-26 18:47:52 +0900
commit2ce6365f9ccd93e8129252429391118f794f5e0b (patch)
tree57e8631b7b739ad5022c0d3c748a6fbb7226dfd7 /test/ruby/test_parse.rb
parent58308899151ee3d49f8d9ef5c4e8d108d8822525 (diff)
parse.y: adjust error indicator
* parse.y (parser_yylex): adjust the error indicator of unexpected fraction part. before: ~~~ 1.2.3 ^~~ ~~~ after: ~~~ 1.2.3 ^~ ~~~
Diffstat (limited to 'test/ruby/test_parse.rb')
-rw-r--r--test/ruby/test_parse.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb
index c59454f8f7..e21f1f9515 100644
--- a/test/ruby/test_parse.rb
+++ b/test/ruby/test_parse.rb
@@ -1086,6 +1086,9 @@ x = __ENCODING__
assert_raise_with_message(SyntaxError, /^ \^~~\z/) do
eval('1.2i1.1')
end
+ assert_raise_with_message(SyntaxError, /^ \^~\z/) do
+ eval('1.2.3')
+ end
end
def test_truncated_source_line