From 87ce12dfe3f096128cde7c835cb8099342d78303 Mon Sep 17 00:00:00 2001 From: Tomoyuki Sahara Date: Thu, 17 Apr 2014 15:53:51 +0900 Subject: io.write("") -> 0 --- test/io.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') 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 -- cgit v1.2.3