diff options
Diffstat (limited to 'test/ruby/test_io.rb')
| -rw-r--r-- | test/ruby/test_io.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 25ceb70be..6e6a27f01 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -1219,4 +1219,8 @@ class TestIO < Test::Unit::TestCase assert_equal("bar\n", File.read(t.path, 4, 4)) end + + def test_uninitialized + assert_raise(IOError) { IO.allocate.print "" } + end end |
