summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/io.rb1
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)