aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_iseq.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_iseq.rb')
-rw-r--r--test/ruby/test_iseq.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_iseq.rb b/test/ruby/test_iseq.rb
index cdfa380edd..94aebe1f90 100644
--- a/test/ruby/test_iseq.rb
+++ b/test/ruby/test_iseq.rb
@@ -19,6 +19,10 @@ class TestISeq < Test::Unit::TestCase
body.find_all{|e| e.kind_of? Integer}
end
+ def test_allocate
+ assert_raise(TypeError) {ISeq.allocate}
+ end
+
def test_to_a_lines
src = <<-EOS
p __LINE__ # 1