File: zip64_support_test.rb

package info (click to toggle)
ruby-zip 3.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 11,120 kB
  • sloc: ruby: 9,958; makefile: 23
file content (16 lines) | stat: -rw-r--r-- 466 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

require_relative 'test_helper'

class Zip64SupportTest < Minitest::Test
  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