diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-18 03:29:12 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-18 03:29:12 +0000 |
commit | e6883ef68880dc6682ab8bad5c390619e672933f (patch) | |
tree | 3dd51cda727819ae5880cd045c0e3df6ce2b3fab /test/-ext- | |
parent | 257fbc2c51e1b16af87268059febc418dbd736c6 (diff) | |
download | ruby-e6883ef68880dc6682ab8bad5c390619e672933f.tar.gz |
parse.y: fix overflow
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/-ext-')
-rw-r--r-- | test/-ext-/ast/test_ast.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/-ext-/ast/test_ast.rb b/test/-ext-/ast/test_ast.rb index d5bdff154a..06bb0bf5e2 100644 --- a/test/-ext-/ast/test_ast.rb +++ b/test/-ext-/ast/test_ast.rb @@ -129,4 +129,12 @@ class TestAst < Test::Unit::TestCase assert_equal([], helper.errors) end end + + def test_column_with_long_heredoc_identifier + term = "A"*257 + ast = AST.parse("<<-#{term}\n""ddddddd\n#{term}\n") + node = ast.children[1] + assert_equal("NODE_STR", node.type) + assert_equal(0, node.first_column) + end end |