diff options
| author | Tomoyuki Sahara <[email protected]> | 2017-05-23 15:06:15 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-05-23 15:06:15 +0900 |
| commit | 87771ecf920d3fd7bc39ddb82fde040e5158718c (patch) | |
| tree | 033ee16136bdb3404d5e081d7a1f5c2fb3d8aeb7 /test/io.rb | |
| parent | 6836f424c5ff95d0114a426010b22254804bc9a3 (diff) | |
| parent | 0bbd60b52348a9c1938d8cce7a1d5aea996e7e1e (diff) | |
| download | mruby-87771ecf920d3fd7bc39ddb82fde040e5158718c.tar.gz mruby-87771ecf920d3fd7bc39ddb82fde040e5158718c.zip | |
Merge pull request #79 from ksss/ioerror
Fix some spec for IO#sysread
Diffstat (limited to 'test/io.rb')
| -rw-r--r-- | test/io.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/io.rb b/test/io.rb index 955481b9f..9ce8985f7 100644 --- a/test/io.rb +++ b/test/io.rb @@ -234,6 +234,9 @@ assert('IO.sysopen, IO#sysread') do io.sysread(10000) end io.close + assert_equal "", io.sysread(0) + assert_raise(IOError) { io.sysread(1) } + assert_raise(ArgumentError) { io.sysread(-1) } io.closed? end |
