diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-20 16:02:21 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-20 16:02:21 +0000 |
commit | ba568c0ea3c84c2e2fa79168df2c970812403c8e (patch) | |
tree | 320d57da8e37e7e93f8b6f7ee28e4dd00f201a91 /test/zlib/test_zlib.rb | |
parent | 1cc9c93ff9a699689cdef4b1254a70ca8559caaa (diff) | |
download | ruby-ba568c0ea3c84c2e2fa79168df2c970812403c8e.tar.gz |
Zlib.gzip uses kwargs instead of argc [Feature #13020]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/zlib/test_zlib.rb')
-rw-r--r-- | test/zlib/test_zlib.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/zlib/test_zlib.rb b/test/zlib/test_zlib.rb index 7f9ec981fd..06e85f6315 100644 --- a/test/zlib/test_zlib.rb +++ b/test/zlib/test_zlib.rb @@ -1134,19 +1134,19 @@ if defined? Zlib expected = %w[1f8b08000000000000ff4bcbcf07002165738c03000000].pack("H*") assert_equal expected, actual - actual = Zlib.gzip("foo".freeze, 0) + actual = Zlib.gzip("foo".freeze, level: 0) actual[4, 4] = "\x00\x00\x00\x00" # replace mtime actual[9] = "\xff" # replace OS expected = %w[1f8b08000000000000ff010300fcff666f6f2165738c03000000].pack("H*") assert_equal expected, actual - actual = Zlib.gzip("foo".freeze, 9) + actual = Zlib.gzip("foo".freeze, level: 9) actual[4, 4] = "\x00\x00\x00\x00" # replace mtime actual[9] = "\xff" # replace OS expected = %w[1f8b08000000000002ff4bcbcf07002165738c03000000].pack("H*") assert_equal expected, actual - actual = Zlib.gzip("foo".freeze, 9, Zlib::FILTERED) + actual = Zlib.gzip("foo".freeze, level: 9, strategy: Zlib::FILTERED) actual[4, 4] = "\x00\x00\x00\x00" # replace mtime actual[9] = "\xff" # replace OS expected = %w[1f8b08000000000002ff4bcbcf07002165738c03000000].pack("H*") |