diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | test/zlib/test_zlib.rb | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Tue Nov 4 08:00:00 2008 TAKANO Mitsuhiro (takano32) <tak@no32.tk> + + * test/zlib/test_zlib.rb(test_readchar): compare in same type. + Tue Nov 4 03:28:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> * array.c (rb_ary_join): do not repeat self in a recursive array. diff --git a/test/zlib/test_zlib.rb b/test/zlib/test_zlib.rb index 5746f036ea..9e4cf80033 100644 --- a/test/zlib/test_zlib.rb +++ b/test/zlib/test_zlib.rb @@ -490,7 +490,7 @@ if defined? Zlib Zlib::GzipWriter.open(t.path) {|gz| gz.print("foobar") } f = Zlib::GzipReader.open(t.path) - "foobar".each_byte {|c| assert_equal(c, f.readchar) } + "foobar".each_byte {|c| assert_equal(c, f.readchar.ord) } assert_raise(EOFError) { f.readchar } end |