summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/io.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/io.rb b/test/io.rb
index 99f236fb4..0db0e9e75 100644
--- a/test/io.rb
+++ b/test/io.rb
@@ -33,6 +33,13 @@ assert('IO.open', '15.2.20.4.1') do
true
end
+assert('IO#write', '15.2.20.5.20') do
+ io = IO.open(IO.sysopen($mrbtest_io_wfname))
+ assert_equal 0, io.write("")
+ io.close
+ true
+end
+
assert('IO.new') do
IO.new(0)
end