-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #139 from dn-m/linux
Add Linux support
- Loading branch information
Showing
12 changed files
with
612 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import XCTest | ||
|
||
extension AccumulatePerformanceTests { | ||
static let __allTests = [ | ||
("testAccumulatingProductLinear", testAccumulatingProductLinear), | ||
] | ||
} | ||
|
||
#if !os(macOS) | ||
public func __allTests() -> [XCTestCaseEntry] { | ||
return [ | ||
testCase(AccumulatePerformanceTests.__allTests), | ||
] | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import XCTest | ||
|
||
extension AccumulateTests { | ||
static let __allTests = [ | ||
("testAccumulatingProduct", testAccumulatingProduct), | ||
("testFloatArrayAccumulatingSum", testFloatArrayAccumulatingSum), | ||
("testIntArrayAccumulatingSum", testIntArrayAccumulatingSum), | ||
] | ||
} | ||
|
||
extension SequenceAlgebraTests { | ||
static let __allTests = [ | ||
("testSetIntersections", testSetIntersections), | ||
("testSumOfAdditiveSemigroup", testSumOfAdditiveSemigroup), | ||
] | ||
} | ||
|
||
#if !os(macOS) | ||
public func __allTests() -> [XCTestCaseEntry] { | ||
return [ | ||
testCase(AccumulateTests.__allTests), | ||
testCase(SequenceAlgebraTests.__allTests), | ||
] | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import XCTest | ||
|
||
extension StableSortPerformanceTests { | ||
static let __allTests = [ | ||
("testStableSort", testStableSort), | ||
] | ||
} | ||
|
||
#if !os(macOS) | ||
public func __allTests() -> [XCTestCaseEntry] { | ||
return [ | ||
testCase(StableSortPerformanceTests.__allTests), | ||
] | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import XCTest | ||
|
||
extension CombinatoricsTests { | ||
static let __allTests = [ | ||
("testCartesianProductOfTwoArrays", testCartesianProductOfTwoArrays), | ||
("testPermutations", testPermutations), | ||
("testPermutationsEmpty", testPermutationsEmpty), | ||
] | ||
} | ||
|
||
extension OrderedTests { | ||
static let __allTests = [ | ||
("testOrderedEqual", testOrderedEqual), | ||
("testOrderInOrder", testOrderInOrder), | ||
("testOrderNeedsOrdering", testOrderNeedsOrdering), | ||
] | ||
} | ||
|
||
extension RotateTests { | ||
static let __allTests = [ | ||
("testRotateBy0", testRotateBy0), | ||
("testRotateBy1", testRotateBy1), | ||
("testRotateByGreaterThanCount", testRotateByGreaterThanCount), | ||
("testRotateByNegative1", testRotateByNegative1), | ||
] | ||
} | ||
|
||
extension SplitTests { | ||
static let __allTests = [ | ||
("testSplitAndExtractEmpty", testSplitAndExtractEmpty), | ||
("testSplitAndExtractMutlple", testSplitAndExtractMutlple), | ||
("testSplitAndExtractSingle", testSplitAndExtractSingle), | ||
] | ||
} | ||
|
||
extension StableSortTests { | ||
static let __allTests = [ | ||
("testStableSort", testStableSort), | ||
] | ||
} | ||
|
||
extension SwapTests { | ||
static let __allTests = [ | ||
("testImmutableSwapped", testImmutableSwapped), | ||
("testImmutableSwappedWithPredicateFalse", testImmutableSwappedWithPredicateFalse), | ||
("testImmutableSwappedWithPredicateTrue", testImmutableSwappedWithPredicateTrue), | ||
("testInoutSwapWithPredicateFalse", testInoutSwapWithPredicateFalse), | ||
("testInoutSwapWithPredicateTrue", testInoutSwapWithPredicateTrue), | ||
] | ||
} | ||
|
||
extension TupleMapTests { | ||
static let __allTests = [ | ||
("testMapAB", testMapAB), | ||
("testMapABC", testMapABC), | ||
("testMapTupleAB", testMapTupleAB), | ||
("testMapTupleABC", testMapTupleABC), | ||
] | ||
} | ||
|
||
#if !os(macOS) | ||
public func __allTests() -> [XCTestCaseEntry] { | ||
return [ | ||
testCase(CombinatoricsTests.__allTests), | ||
testCase(OrderedTests.__allTests), | ||
testCase(RotateTests.__allTests), | ||
testCase(SplitTests.__allTests), | ||
testCase(StableSortTests.__allTests), | ||
testCase(SwapTests.__allTests), | ||
testCase(TupleMapTests.__allTests), | ||
] | ||
} | ||
#endif |
16 changes: 16 additions & 0 deletions
16
Tests/DataStructuresPerformanceTests/XCTestManifests.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import XCTest | ||
|
||
extension BinaryHeapPerformanceTests { | ||
static let __allTests = [ | ||
("testInsert_O_1", testInsert_O_1), | ||
("testPop_O_1", testPop_O_1), | ||
] | ||
} | ||
|
||
#if !os(macOS) | ||
public func __allTests() -> [XCTestCaseEntry] { | ||
return [ | ||
testCase(BinaryHeapPerformanceTests.__allTests), | ||
] | ||
} | ||
#endif |
Oops, something went wrong.