@@ -14,7 +14,7 @@ def teardown
14
14
def test_add_case_sensitive
15
15
::Zip . case_insensitive_match = false
16
16
17
- SRC_FILES . each { |fn , en | assert ( ::File . exist? ( fn ) ) }
17
+ SRC_FILES . each { |fn , _en | assert ( ::File . exist? ( fn ) ) }
18
18
zf = ::Zip ::File . new ( EMPTY_FILENAME , ::Zip ::File ::CREATE )
19
19
20
20
SRC_FILES . each { |fn , en | zf . add ( en , fn ) }
@@ -33,7 +33,7 @@ def test_add_case_sensitive
33
33
def test_add_case_insensitive
34
34
::Zip . case_insensitive_match = true
35
35
36
- SRC_FILES . each { |fn , en | assert ( ::File . exist? ( fn ) ) }
36
+ SRC_FILES . each { |fn , _en | assert ( ::File . exist? ( fn ) ) }
37
37
zf = ::Zip ::File . new ( EMPTY_FILENAME , ::Zip ::File ::CREATE )
38
38
39
39
assert_raises Zip ::EntryExistsError do
@@ -45,7 +45,7 @@ def test_add_case_insensitive
45
45
def test_add_case_sensitive_read_case_insensitive
46
46
::Zip . case_insensitive_match = false
47
47
48
- SRC_FILES . each { |fn , en | assert ( ::File . exist? ( fn ) ) }
48
+ SRC_FILES . each { |fn , _en | assert ( ::File . exist? ( fn ) ) }
49
49
zf = ::Zip ::File . new ( EMPTY_FILENAME , ::Zip ::File ::CREATE )
50
50
51
51
SRC_FILES . each { |fn , en | zf . add ( en , fn ) }
@@ -54,7 +54,7 @@ def test_add_case_sensitive_read_case_insensitive
54
54
::Zip . case_insensitive_match = true
55
55
56
56
zfRead = ::Zip ::File . new ( EMPTY_FILENAME )
57
- assert_equal ( SRC_FILES . collect { |fn , en | en . downcase } . uniq . size , zfRead . entries . length )
57
+ assert_equal ( SRC_FILES . collect { |_fn , en | en . downcase } . uniq . size , zfRead . entries . length )
58
58
assert_equal ( SRC_FILES . last . last . downcase , zfRead . entries . first . name . downcase )
59
59
AssertEntry . assert_contents ( SRC_FILES . last . first ,
60
60
zfRead . get_input_stream ( SRC_FILES . last . last ) { |zis | zis . read } )
0 commit comments