diff options
| author | ksss <[email protected]> | 2017-05-21 22:55:28 +0900 |
|---|---|---|
| committer | ksss <[email protected]> | 2017-05-22 11:47:45 +0900 |
| commit | 0bbd60b52348a9c1938d8cce7a1d5aea996e7e1e (patch) | |
| tree | 033ee16136bdb3404d5e081d7a1f5c2fb3d8aeb7 /test/io.rb | |
| parent | 86edc9ab8541d15b470dd4fe0bac1e136c2ffced (diff) | |
| download | mruby-0bbd60b52348a9c1938d8cce7a1d5aea996e7e1e.tar.gz mruby-0bbd60b52348a9c1938d8cce7a1d5aea996e7e1e.zip | |
IO#sysread should raise error when invalid pos
Diffstat (limited to 'test/io.rb')
| -rw-r--r-- | test/io.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/io.rb b/test/io.rb index 02ab038bb..9ce8985f7 100644 --- a/test/io.rb +++ b/test/io.rb @@ -236,6 +236,7 @@ assert('IO.sysopen, IO#sysread') do io.close assert_equal "", io.sysread(0) assert_raise(IOError) { io.sysread(1) } + assert_raise(ArgumentError) { io.sysread(-1) } io.closed? end |
