Sha256: 0eaad5460cdad97a7bafa71d31a45660ae124438a908daddbb80540b2c7f3321
Contents?: true
Size: 647 Bytes
Versions: 72
Compression:
Stored size: 647 Bytes
Contents
require 'test_helper' class PassThruCompressorTest < MiniTest::Test include CrcTest def test_size File.open("test/data/generated/dummy.txt", "wb") { |file| compressor = ::Zip::PassThruCompressor.new(file) assert_equal(0, compressor.size) t1 = "hello world" t2 = "" t3 = "bingo" compressor << t1 assert_equal(compressor.size, t1.size) compressor << t2 assert_equal(compressor.size, t1.size + t2.size) compressor << t3 assert_equal(compressor.size, t1.size + t2.size + t3.size) } end def test_crc run_crc_test(::Zip::PassThruCompressor) end end
Version data entries
72 entries across 69 versions & 20 rubygems