diff options
| author | Tomoyuki Sahara <[email protected]> | 2014-04-17 15:53:51 +0900 |
|---|---|---|
| committer | Tomoyuki Sahara <[email protected]> | 2014-04-17 15:53:51 +0900 |
| commit | 87ce12dfe3f096128cde7c835cb8099342d78303 (patch) | |
| tree | 1f2a39bfaa0e9e4c465453670ee797ef3be00c64 /test | |
| parent | 810e37b1c3202eef6164933234d137d8d095e034 (diff) | |
| download | mruby-87ce12dfe3f096128cde7c835cb8099342d78303.tar.gz mruby-87ce12dfe3f096128cde7c835cb8099342d78303.zip | |
io.write("") -> 0
Diffstat (limited to 'test')
| -rw-r--r-- | test/io.rb | 7 |
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 |
