This commit is contained in:
Nobuyoshi Nakada 2021-02-03 17:32:41 +09:00
Родитель 583f364f71
Коммит d05a268adc
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 7CD2805BFA3770C6
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -516,14 +516,14 @@ if defined? Zlib
gz.close
results = []
t = File.open(t.path)
t = File.open(t.path, 'rb')
Zlib::GzipReader.zcat(t) do |str|
results << str
end
assert_equal(["foo", "bar"], results)
t.close
t = File.open(t.path)
t = File.open(t.path, 'rb')
assert_equal("foobar", Zlib::GzipReader.zcat(t))
t.close
}