Module: CrcTest
- Included in:
- DeflaterTest, PassThruCompressorTest
- Defined in:
- lib/hotplate/gems/rubyzip-1.1.7/test/test_helper.rb
Defined Under Namespace
Classes: TestOutputStream
Instance Method Summary collapse
Instance Method Details
#run_crc_test(compressorClass) ⇒ Object
171 172 173 174 175 176 177 178 |
# File 'lib/hotplate/gems/rubyzip-1.1.7/test/test_helper.rb', line 171 def run_crc_test(compressorClass) str = "Here's a nice little text to compute the crc for! Ho hum, it is nice nice nice nice indeed." fakeOut = TestOutputStream.new deflater = compressorClass.new(fakeOut) deflater << str assert_equal(0x919920fc, deflater.crc) end |