GzipReader fails Rubyspecs (for #getc and #each_byte)
-----------------------------------------------------

                 Key: JRUBY-4404
                 URL: http://jira.codehaus.org/browse/JRUBY-4404
             Project: JRuby
          Issue Type: Bug
          Components: Extensions, RubySpec
    Affects Versions: JRuby 1.4
            Reporter: Vladimir Sizikov
            Assignee: Vladimir Sizikov
             Fix For: JRuby 1.5


{code}
mspec -t j library\zlib\gzipreader
jruby 1.5.0.dev (ruby 1.8.7 patchlevel 174) (2009-12-30 2db9989) (Java 
HotSpot(TM) Client VM 1.6.0_17) [x86-java]
.F......F.........FF

1)
GzipReader#each_byte increments position before calling the block FAILED
Expected 0
 to equal 1

D:/work/jruby-dev/rubyspec.git/library/zlib/gzipreader/each_byte_spec.rb:28
D:/work/jruby-dev/rubyspec.git/library/zlib/gzipreader/each_byte_spec.rb:27:in 
`each_byte'
D:/work/jruby-dev/rubyspec.git/library/zlib/gzipreader/each_byte_spec.rb:27
D:/work/jruby-dev/rubyspec.git/library/zlib/gzipreader/each_byte_spec.rb:5
D:/work/jruby-dev/rubyspec.git/library/zlib/gzipreader/each_byte_spec.rb:55:in 
`load'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8

2)
GzipReader#getc increments position FAILED
Expected 0
 to equal 1

D:/work/jruby-dev/rubyspec.git/library/zlib/gzipreader/getc_spec.rb:42
D:/work/jruby-dev/rubyspec.git/library/zlib/gzipreader/getc_spec.rb:41:in `each'
D:/work/jruby-dev/rubyspec.git/library/zlib/gzipreader/getc_spec.rb:41
D:/work/jruby-dev/rubyspec.git/library/zlib/gzipreader/getc_spec.rb:5
D:/work/jruby-dev/rubyspec.git/library/zlib/gzipreader/getc_spec.rb:55:in `load'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8
{code}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to