Rename `zip` -> `createZip`

This commit is contained in:
araki 2017-04-13 17:59:08 +09:00
parent 01653928c7
commit e0a55a9728
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ public func unzip(data: Data) -> [String: Data] {
/// Create zip archive.
/// Doesn't contain file info, password.
/// - Returns: zip archive data
public func zip(entries: [String: Data]) -> Data {
public func createZip(entries: [String: Data]) -> Data {
var filefunc32 = zlib_filefunc_def();
var zipmem = ourmemory_t();

View File

@ -21,7 +21,7 @@ class SwiftZipTests: XCTestCase {
"a.txt": dataA,
"あいうえお.txt": dataB
]
let data = zip(entries: files)
let data = createZip(entries: files)
let out = unzip(data: data)
XCTAssertEqual(Set(out.keys), ["a.txt", "あいうえお.txt"])
XCTAssertEqual(out["a.txt"], dataA)