# File glib/tests/test-iochannel.rb, line 61 def test_each_char text = "aaa\nbbb\nccc\nあああ\n".split(//) io = GLib::IOChannel.new(TEST_FILE) i = 0 io.each_char {|ch| assert_equal(text[i].unpack("U")[0], ch) i += 1 } io.close end