diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_argf.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ruby/test_argf.rb b/test/ruby/test_argf.rb index a9ba9f64e2..cb27b9c64e 100644 --- a/test/ruby/test_argf.rb +++ b/test/ruby/test_argf.rb @@ -899,4 +899,12 @@ class TestArgf < Test::Unit::TestCase assert_equal "done with eof\n", f.gets end end + + def test_wrong_type + assert_separately([], <<-'end;') + bug11610 = '[ruby-core:71140] [Bug #11610]' + ARGV[0] = nil + assert_raise(TypeError, bug11610) {gets} + end; + end end |