Sha256: b09ca702aac8e591ccc40f90e7c8e3ff3fa04e2c8fa1b17d5006a81e97321dfd
Contents?: true
Size: 560 Bytes
Versions: 5
Compression:
Stored size: 560 Bytes
Contents
# tc_Flate.rb require 'test/unit' require 'Flate' class TestFlate < Test::Unit::TestCase def make_data(size = 10000) srand # intitialize the random seed... data = "" i = 0 while i < size # not efficicent, but this will have to do ;-) ! data += [rand(256)].pack("C") i += 1 end return data end def test_compression_decompression data = make_data data_compressed = Flate.compress(data) data_second = Flate.expand(data_compressed) assert_equal(data_second, data) end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
tioga-1.11 | tests/tc_Flate.rb |
tioga-1.8 | tests/tc_Flate.rb |
tioga-1.9 | tests/tc_Flate.rb |
tioga-1.7 | tests/tc_Flate.rb |
tioga-1.6 | tests/tc_Flate.rb |