test/test_z_bench.rb in bychar-2.0.0 vs test/test_z_bench.rb in bychar-3.0.0

- old
+ new

@@ -19,12 +19,12 @@ end def run File.open(File.dirname(__FILE__) + "/huge_nuke_tcl.tcl") do | io | reader = get_reader(io) - begin - loop { reader.read_one_char! * 2 } - rescue Bychar::EOF + str = [] + while c = reader.read_one_char + str << (c * 2) end end end end