diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/io.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/io.rb b/test/io.rb index b828fef49..a5ce7e049 100644 --- a/test/io.rb +++ b/test/io.rb @@ -150,6 +150,14 @@ assert('IO#write', '15.2.20.5.20') do true end +assert('IO#<<') do + io = IO.open(IO.sysopen($mrbtest_io_wfname)) + io << "" << "" + assert_equal 0, io.pos + io.close + true +end + assert('IO.for_fd') do fd = IO.sysopen($mrbtest_io_rfname) io = IO.for_fd(fd) |
