File: zip64_support_test.rb

package info (click to toggle)
ruby-zip 1.1.6-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 668 kB
  • sloc: ruby: 7,041; makefile: 11
file content (15 lines) | stat: -rw-r--r-- 437 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'test_helper'

class Zip64SupportTest < MiniTest::Unit::TestCase
  TEST_FILE = File.join(File.dirname(__FILE__), 'data', 'zip64-sample.zip')

  def test_open_zip64_file
    zip_file = ::Zip::File.open(TEST_FILE)
    assert(!zip_file.nil?)
    assert(zip_file.entries.count == 2)
    test_rb = zip_file.entries.find { |x| x.name == 'test.rb' }
    assert(test_rb.size == 482)
    assert(test_rb.compressed_size == 229)
  end

end