mirror of
https://github.com/tsolomko/SWCompression.git
synced 2026-06-23 14:56:41 +00:00
[Tests] Add a test for a not-a-zip file
This commit is contained in:
@@ -10,6 +10,11 @@ class ZipTests: XCTestCase {
|
||||
|
||||
private static let testType: String = "zip"
|
||||
|
||||
func testBadFile_invalid() throws {
|
||||
let testData = try Constants.data(forAnswer: "test6")
|
||||
XCTAssertThrowsError(try ZipContainer.open(container: testData))
|
||||
}
|
||||
|
||||
func testBigContainer() throws {
|
||||
let testData = try Constants.data(forTest: "SWCompressionSourceCode", withType: ZipTests.testType)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user