Clone the gist and execute gzip_reader_test.rb
.
Ruby tested:
- ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-darwin18]
Gzip tested:
- Apple gzip 272.220.1
- gzip 1.10
$ ./gzip_reader.rb
Traceback (most recent call last):
6: from ./gzip_reader.rb:17:in `<main>'
5: from ./gzip_reader.rb:17:in `open'
4: from ./gzip_reader.rb:18:in `block in <main>'
3: from /Users/amooney/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/test-unit-3.2.9/lib/test/unit/assertions.rb:240:in `assert_equal'
2: from /Users/amooney/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/test-unit-3.2.9/lib/test/unit/assertions.rb:53:in `assert_block'
1: from /Users/amooney/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/test-unit-3.2.9/lib/test/unit/assertions.rb:1636:in `_wrap_assertion'
/Users/amooney/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/test-unit-3.2.9/lib/test/unit/assertions.rb:55:in `block in assert_block': <"hello world\n"> expected but was (Test::Unit::AssertionFailedError)
<"hello ">.