Method: ADSP::Test::String#test_texts

Defined in:
lib/adsp/test/string.rb

#test_textsObject



50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/adsp/test/string.rb', line 50

def test_texts
  parallel_compressor_options do |compressor_options|
    TEXTS.each do |text|
      compressed_text = target.compress text, compressor_options

      get_compatible_decompressor_options compressor_options do |decompressor_options|
        decompressed_text = target.decompress compressed_text, decompressor_options
        decompressed_text.force_encoding text.encoding

        assert_equal text, decompressed_text
      end
    end
  end
end