Rename `zip` -> `createZip`
This commit is contained in:
parent
01653928c7
commit
e0a55a9728
|
@ -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();
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue