diff options
Diffstat (limited to 'test/ruby/test_ast.rb')
-rw-r--r-- | test/ruby/test_ast.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_ast.rb b/test/ruby/test_ast.rb index f59b54c17a..27c6753a7e 100644 --- a/test/ruby/test_ast.rb +++ b/test/ruby/test_ast.rb @@ -129,6 +129,10 @@ class TestAst < Test::Unit::TestCase end end + def test_allocate + assert_raise(TypeError) {RubyVM::AST::Node.allocate} + end + def test_column_with_long_heredoc_identifier term = "A"*257 ast = RubyVM::AST.parse("<<-#{term}\n""ddddddd\n#{term}\n") |