diff options
| author | Tomoyuki Sahara <[email protected]> | 2014-06-19 09:57:08 +0900 |
|---|---|---|
| committer | Tomoyuki Sahara <[email protected]> | 2014-06-19 09:57:08 +0900 |
| commit | ddfc4eb5ef170e7eabc7b545366cac389139f044 (patch) | |
| tree | 6ea79d7afa09597181b062c8db53c3fb76ff4b82 /test/io.rb | |
| parent | d894de86f4429aba22055c8319fcf930ac39bdb4 (diff) | |
| download | mruby-ddfc4eb5ef170e7eabc7b545366cac389139f044.tar.gz mruby-ddfc4eb5ef170e7eabc7b545366cac389139f044.zip | |
IO#read(0) should return "" immediately. fixes iij/mruby-socket#13.
Diffstat (limited to 'test/io.rb')
| -rw-r--r-- | test/io.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/io.rb b/test/io.rb index b5b952425..ebfd2dd54 100644 --- a/test/io.rb +++ b/test/io.rb @@ -93,6 +93,7 @@ assert('IO#read', '15.2.20.5.14') do assert_raise(TypeError) { io.read("str") } len = $mrbtest_io_msg.length + assert_equal '', io.read(0) assert_equal 'mruby', io.read(5) assert_equal $mrbtest_io_msg[5,len], io.read(len) |
