Skip speed test "testSpeedSwiftSplit" as it takes a very long time.
Also improve output of "testWhenSplitFileAsStringBecomesQuicker".
This commit is contained in:
@@ -37,6 +37,11 @@
|
||||
BlueprintName = "SwiftShell_Speed_Tests"
|
||||
ReferencedContainer = "container:SwiftShell.xcodeproj">
|
||||
</BuildableReference>
|
||||
<SkippedTests>
|
||||
<Test
|
||||
Identifier = "Stream_Iteration_SpeedTests/testSpeedSwiftSplit()">
|
||||
</Test>
|
||||
</SkippedTests>
|
||||
</TestableReference>
|
||||
</Testables>
|
||||
<MacroExpansion>
|
||||
|
||||
@@ -116,15 +116,18 @@ class Stream_Iteration_SpeedTests: XCTestCase {
|
||||
}
|
||||
|
||||
func testWhenSplitFileAsStringBecomesQuicker() {
|
||||
println()
|
||||
let splitarray = allSpeedsSplitFileAsString()
|
||||
let myarray = allSpeedIterateOverFile()
|
||||
for i in 0..<splitarray.count {
|
||||
if myarray[i] > splitarray[i] {
|
||||
println(" splitting strings is faster after \(i) of \(splitarray.count) iterations")
|
||||
println()
|
||||
return
|
||||
}
|
||||
}
|
||||
println( "splitting strings was never faster!")
|
||||
println()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user