diff options
| author | KOBAYASHI Shuji <[email protected]> | 2019-04-27 12:50:02 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2019-04-27 12:50:02 +0900 |
| commit | 270131253f62d806ea480ef4793e0b39cd068ee4 (patch) | |
| tree | 5f3d456ccc0379bf59f720957364846c99f47011 /mrbgems/mruby-io | |
| parent | 2b0135e869742444aed2f2448c99956ee66c1594 (diff) | |
| download | mruby-270131253f62d806ea480ef4793e0b39cd068ee4.tar.gz mruby-270131253f62d806ea480ef4793e0b39cd068ee4.zip | |
Remove duplicated `String#each_char`
Diffstat (limited to 'mrbgems/mruby-io')
| -rw-r--r-- | mrbgems/mruby-io/test/io.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-io/test/io.rb b/mrbgems/mruby-io/test/io.rb index 44eaca6be..2b3f9cf13 100644 --- a/mrbgems/mruby-io/test/io.rb +++ b/mrbgems/mruby-io/test/io.rb @@ -84,7 +84,7 @@ end assert('IO#getc', '15.2.20.5.8') do io = IO.new(IO.sysopen($mrbtest_io_rfname)) - $mrbtest_io_msg.each_char { |ch| + $mrbtest_io_msg.split("").each { |ch| assert_equal ch, io.getc } assert_equal nil, io.getc @@ -127,7 +127,7 @@ end assert('IO#readchar', '15.2.20.5.15') do # almost same as IO#getc IO.open(IO.sysopen($mrbtest_io_rfname)) do |io| - $mrbtest_io_msg.each_char { |ch| + $mrbtest_io_msg.split("").each { |ch| assert_equal ch, io.readchar } assert_raise(EOFError) do |
