diff options
| author | take-cheeze <[email protected]> | 2021-03-27 02:20:25 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-04-10 19:08:14 +0900 |
| commit | bf455fd5829065db4f9f24a48ce823e3c497e402 (patch) | |
| tree | ee55a9166044c47afc21494f4d6b4110a4a91780 /mrbgems/mruby-io/test | |
| parent | 44d5e214cc63a5c55dc62db688edbb2040b4f828 (diff) | |
| download | mruby-bf455fd5829065db4f9f24a48ce823e3c497e402.tar.gz mruby-bf455fd5829065db4f9f24a48ce823e3c497e402.zip | |
Add IO#getbyte
Diffstat (limited to 'mrbgems/mruby-io/test')
| -rw-r--r-- | mrbgems/mruby-io/test/io.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mrbgems/mruby-io/test/io.rb b/mrbgems/mruby-io/test/io.rb index 328b5292f..88a89fee4 100644 --- a/mrbgems/mruby-io/test/io.rb +++ b/mrbgems/mruby-io/test/io.rb @@ -105,6 +105,15 @@ assert('IO#getc', '15.2.20.5.8') do io.close end +assert('IO#getbyte') do + io = IO.new(IO.sysopen($mrbtest_io_rfname)) + $mrbtest_io_msg.split("").each do |ch| + assert_equal ch.getbyte(0), io.getbyte + end + assert_equal nil, io.getbyte + io.close +end + #assert('IO#gets', '15.2.20.5.9') do #assert('IO#initialize_copy', '15.2.20.5.10') do #assert('IO#print', '15.2.20.5.11') do |
