summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-06-22 20:10:13 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-06-22 20:10:13 +0900
commit1344de56219cf83ca146c5346783f8483af534f9 (patch)
tree921159e6a2ad47ca4d7d38690d8d1d6029a9c2c1 /test/ruby
parent8142728b5a0b9cab217124e5dad33f8d46fd3652 (diff)
[Bug #19743] All but EOF can be read again after push-back
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_parse.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb
index 099050dc8d..bf0d9f1bd5 100644
--- a/test/ruby/test_parse.rb
+++ b/test/ruby/test_parse.rb
@@ -1138,6 +1138,8 @@ x = __ENCODING__
assert_syntax_error('0000xyz', /^ \^~~\Z/)
assert_syntax_error('1.2i1.1', /^ \^~~\Z/)
assert_syntax_error('1.2.3', /^ \^~\Z/)
+ assert_syntax_error('1.', /unexpected end-of-input/)
+ assert_syntax_error('1e', /expecting end-of-input/)
end
def test_truncated_source_line