mirror of
https://github.com/tsolomko/SWCompression.git
synced 2026-06-23 14:56:41 +00:00
Rename file with BZip2 tests for consistency
This commit is contained in:
@@ -140,7 +140,7 @@
|
||||
0675183D1E2A883600D16354 /* ZipTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0675183C1E2A883600D16354 /* ZipTests.swift */; };
|
||||
0680E1B11DDA2D7C005C05EB /* ZlibTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0680E1B01DDA2D7C005C05EB /* ZlibTests.swift */; };
|
||||
0680E1B31DDA3D0A005C05EB /* GzipTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0680E1B21DDA3D0A005C05EB /* GzipTests.swift */; };
|
||||
0680E1B51DDA4076005C05EB /* Bzip2Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0680E1B41DDA4075005C05EB /* Bzip2Tests.swift */; };
|
||||
0680E1B51DDA4076005C05EB /* BZip2Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0680E1B41DDA4075005C05EB /* BZip2Tests.swift */; };
|
||||
0681B3DE1E44F674001A9D79 /* BitWriter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0681B3DD1E44F674001A9D79 /* BitWriter.swift */; };
|
||||
0681B3DF1E44F674001A9D79 /* BitWriter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0681B3DD1E44F674001A9D79 /* BitWriter.swift */; };
|
||||
0681B3E01E44F674001A9D79 /* BitWriter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0681B3DD1E44F674001A9D79 /* BitWriter.swift */; };
|
||||
@@ -390,7 +390,7 @@
|
||||
0675183C1E2A883600D16354 /* ZipTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ZipTests.swift; sourceTree = "<group>"; };
|
||||
0680E1B01DDA2D7C005C05EB /* ZlibTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ZlibTests.swift; sourceTree = "<group>"; };
|
||||
0680E1B21DDA3D0A005C05EB /* GzipTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GzipTests.swift; sourceTree = "<group>"; };
|
||||
0680E1B41DDA4075005C05EB /* Bzip2Tests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Bzip2Tests.swift; sourceTree = "<group>"; };
|
||||
0680E1B41DDA4075005C05EB /* BZip2Tests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BZip2Tests.swift; sourceTree = "<group>"; };
|
||||
0681B3DD1E44F674001A9D79 /* BitWriter.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = BitWriter.swift; path = Sources/BitWriter.swift; sourceTree = SOURCE_ROOT; };
|
||||
0685E6231F123F0D008655AA /* test_zip_bzip2.zip */ = {isa = PBXFileReference; lastKnownFileType = archive.zip; path = test_zip_bzip2.zip; sourceTree = "<group>"; };
|
||||
068B36781ED0AC050016269E /* full_test.tar */ = {isa = PBXFileReference; lastKnownFileType = archive.tar; path = full_test.tar; sourceTree = "<group>"; };
|
||||
@@ -794,7 +794,7 @@
|
||||
06CC183D1DE35269003532F5 /* Test Files */,
|
||||
069AC2111E02DDAF0041AC13 /* LzmaTests.swift */,
|
||||
06E2347F1E069ABD00F18798 /* XzTests.swift */,
|
||||
0680E1B41DDA4075005C05EB /* Bzip2Tests.swift */,
|
||||
0680E1B41DDA4075005C05EB /* BZip2Tests.swift */,
|
||||
06CC187E1DE35607003532F5 /* DeflateTests.swift */,
|
||||
0680E1B21DDA3D0A005C05EB /* GzipTests.swift */,
|
||||
0680E1B01DDA2D7C005C05EB /* ZlibTests.swift */,
|
||||
@@ -1442,7 +1442,7 @@
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
064F72311F1E63E200017297 /* 7zTests.swift in Sources */,
|
||||
0680E1B51DDA4076005C05EB /* Bzip2Tests.swift in Sources */,
|
||||
0680E1B51DDA4076005C05EB /* BZip2Tests.swift in Sources */,
|
||||
06CC187F1DE35607003532F5 /* DeflateTests.swift in Sources */,
|
||||
061FCE2D1DBCC6A30052F7BE /* Constants.swift in Sources */,
|
||||
069AC2121E02DDAF0041AC13 /* LzmaTests.swift in Sources */,
|
||||
|
||||
@@ -6,12 +6,12 @@
|
||||
import XCTest
|
||||
import SWCompression
|
||||
|
||||
class Bzip2Tests: XCTestCase {
|
||||
class BZip2Tests: XCTestCase {
|
||||
|
||||
static let testType: String = "bz2"
|
||||
|
||||
func perform(test testName: String) throws {
|
||||
guard let testURL = Constants.url(forTest: testName, withType: Bzip2Tests.testType) else {
|
||||
guard let testURL = Constants.url(forTest: testName, withType: BZip2Tests.testType) else {
|
||||
XCTFail("Unable to get test's URL.")
|
||||
return
|
||||
}
|
||||
@@ -29,50 +29,50 @@ class Bzip2Tests: XCTestCase {
|
||||
XCTAssertEqual(decompressedData, answerData, "Decompression was incorrect.")
|
||||
|
||||
#if PERF_TESTS
|
||||
print("Performing performance tests for \(Bzip2Tests.testType).\(testName)")
|
||||
print("Performing performance tests for \(BZip2Tests.testType).\(testName)")
|
||||
self.measure {
|
||||
_ = try? BZip2.decompress(data: testData)
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
func test1Bzip2() throws {
|
||||
func test1BZip2() throws {
|
||||
try self.perform(test: "test1")
|
||||
}
|
||||
|
||||
func test2Bzip2() throws {
|
||||
func test2BZip2() throws {
|
||||
try self.perform(test: "test2")
|
||||
}
|
||||
|
||||
func test3Bzip2() throws {
|
||||
func test3BZip2() throws {
|
||||
try self.perform(test: "test3")
|
||||
}
|
||||
|
||||
func test4Bzip2() throws {
|
||||
func test4BZip2() throws {
|
||||
try self.perform(test: "test4")
|
||||
}
|
||||
|
||||
func test5Bzip2() throws {
|
||||
func test5BZip2() throws {
|
||||
try self.perform(test: "test5")
|
||||
}
|
||||
|
||||
#if LONG_TESTS
|
||||
|
||||
func test6Bzip2() throws {
|
||||
func test6BZip2() throws {
|
||||
try self.perform(test: "test6")
|
||||
}
|
||||
|
||||
func test7Bzip2() throws {
|
||||
func test7BZip2() throws {
|
||||
try self.perform(test: "test7")
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
func test8Bzip2() throws {
|
||||
func test8BZip2() throws {
|
||||
try self.perform(test: "test8")
|
||||
}
|
||||
|
||||
func test9Bzip2() throws {
|
||||
func test9BZip2() throws {
|
||||
try self.perform(test: "test9")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user