summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/-ext-/ast/test_ast.rb8
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