StdlibUnittest Changes
StdlibUnittest
Removed TestCase [struct]
Removed TestCase.init(_: String)
Removed TestCase.name
Removed TestCase.run()
Removed TestCase.test(String, testFunction:() -> ())
Removed asHex([UInt32]) -> String
Removed asHex([UInt8]) -> String
Removed expectFalse(Bool, StdlibUnittest.SourceLocStack?, String, UWord)
Removed expectFalse(StdlibUnittest.AssertionResult, StdlibUnittest.SourceLocStack?, String, UWord)
Removed expectTrue(Bool, StdlibUnittest.SourceLocStack?, String, UWord)
Removed expectTrue(StdlibUnittest.AssertionResult, StdlibUnittest.SourceLocStack?, String, UWord)
Added LifetimeTracked
Added LifetimeTracked.deinit
Added LifetimeTracked.init(_: Int)
Added LifetimeTracked.description
Added LifetimeTracked.instances
Added LifetimeTracked.serialNumber
Added LifetimeTracked.successor() -> StdlibUnittest.LifetimeTracked
Added LifetimeTracked.value
Added OSVersion [enum]
Added OSVersion.OSX
Added OSVersion.description
Added OSVersion.iOS
Added OSVersion.iOSSimulator
Added Observation1UWord [struct]
Added Observation1UWord.init(_: UWord)
Added Observation1UWord.description
Added Observation1UWord.uw1
Added Observation4UWord [struct]
Added Observation4UWord.init(_: UWord, _: UWord, _: UWord, _: UWord)
Added Observation4UWord.description
Added Observation4UWord.uw1
Added Observation4UWord.uw2
Added Observation4UWord.uw3
Added Observation4UWord.uw4
Added Observation4Word [struct]
Added Observation4Word.init(_: Word, _: Word, _: Word, _: Word)
Added Observation4Word.description
Added Observation4Word.w1
Added Observation4Word.w2
Added Observation4Word.w3
Added Observation4Word.w4
Added ProcessTerminationStatus [enum]
Added ProcessTerminationStatus.Exit
Added ProcessTerminationStatus.Signal
Added ProcessTerminationStatus.description
Added ProcessTerminationStatus.isSwiftTrap
Added RaceTestObservationEvaluation [enum]
Added RaceTestObservationEvaluation.Failure
Added RaceTestObservationEvaluation.FailureInteresting
Added RaceTestObservationEvaluation.Pass
Added RaceTestObservationEvaluation.PassInteresting
Added RaceTestObservationEvaluation.description
Added RaceTestWithPerTrialDataType
Added RaceTestWithPerTrialDataType.init()
Added RaceTestWithPerTrialDataType.evaluateObservations([Observation], _: S)
Added RaceTestWithPerTrialDataType.makeRaceData() -> RaceData
Added RaceTestWithPerTrialDataType.makeThreadLocalData() -> ThreadLocalData
Added RaceTestWithPerTrialDataType.thread1(RaceData, _: ThreadLocalData) -> Observation
Added TestRunPredicate [enum]
Added TestRunPredicate.Custom
Added TestRunPredicate.OSXAny
Added TestRunPredicate.OSXBugFix
Added TestRunPredicate.OSXBugFixRange
Added TestRunPredicate.OSXMajor
Added TestRunPredicate.OSXMinor
Added TestRunPredicate.OSXMinorRange
Added TestRunPredicate.description
Added TestRunPredicate.evaluate() -> Bool
Added TestRunPredicate.iOSAny
Added TestRunPredicate.iOSBugFix
Added TestRunPredicate.iOSBugFixRange
Added TestRunPredicate.iOSMajor
Added TestRunPredicate.iOSMinor
Added TestRunPredicate.iOSMinorRange
Added TestRunPredicate.iOSSimulatorAny
Added TestSuite
Added TestSuite.init(_: String)
Added TestSuite.name
Added TestSuite.setUp(() -> ())
Added TestSuite.tearDown(() -> ())
Added TestSuite.test(String) -> StdlibUnittest.TestSuite._TestBuilder
Added TestSuite.test(String, _:() -> ())
Added pthread_attr_t.init()
Added pthread_cond_t.init()
Added pthread_mutex_t.init()
Added RaceTestWithPerTrialDataType.Observation
Added RaceTestWithPerTrialDataType.RaceData
Added RaceTestWithPerTrialDataType.ThreadLocalData
Added WEXITSTATUS(CInt) -> CInt
Added WIFEXITED(CInt) -> Bool
Added WIFSIGNALED(CInt) -> Bool
Added WTERMSIG(CInt) -> CInt
Added asHex(S) -> String
Added asHex(T) -> String
Added chiSquaredUniform2(Int, Int, Double) -> Bool
Added consumeCPU(Int)
Added createTemporaryFile(String, String, String) -> String
Added evaluateObservationsAllEqual([T]) -> StdlibUnittest.RaceTestObservationEvaluation
Added expectCrashLater()
Added expectFalse(Bool, StdlibUnittest.SourceLocStack?,(() -> String)?, String, UWord)
Added expectFalse(StdlibUnittest.AssertionResult, StdlibUnittest.SourceLocStack?,(() -> String)?, String, UWord)
Added expectTrue(Bool, StdlibUnittest.SourceLocStack?,(() -> String)?, String, UWord)
Added expectTrue(StdlibUnittest.AssertionResult, StdlibUnittest.SourceLocStack?,(() -> String)?, String, UWord)
Added findSubstring(String, String) -> String.Index?
Added getFloat32(Float32) -> Float32
Added getFloat64(Float64) -> Float64
Added getInt(Int) -> Int
Added getInt16(Int16) -> Int16
Added getInt32(Int32) -> Int32
Added getInt64(Int64) -> Int64
Added getInt8(Int8) -> Int8
Added getPointer(COpaquePointer) -> COpaquePointer
Added getUInt(UInt) -> UInt
Added getUInt16(UInt16) -> UInt16
Added getUInt32(UInt32) -> UInt32
Added getUInt64(UInt64) -> UInt64
Added getUInt8(UInt8) -> UInt8
Added getUWord(UWord) -> UWord
Added getWord(Word) -> Word
Added nextTrackedSerialNumber
Added posixPipe() -> (readFD: CInt, writeFD: CInt)
Added posixWaitpid(pid_t) -> StdlibUnittest.ProcessTerminationStatus
Added rand32() -> UInt32
Added rand32(UInt32) -> UInt32
Added rand64() -> UInt64
Added randArray64(Int) -> ContiguousArray<UInt64>
Added randInt() -> Int
Added readAll(CInt) -> String
Added runAllTests()
Added runChild([String]) -> (stdout: String, stderr: String, status: StdlibUnittest.ProcessTerminationStatus)
Added runRaceTest(RT.Type, Int, Int?)
Added scan(S, U,(U, S.Generator.Element) -> U) -> [U]
Added signalToString(Int) -> String
Added spawnChild([String]) -> (pid: pid_t, stdinFD: CInt, stdoutFD: CInt, stderrFD: CInt)
Added trackedCount
Added withArrayOfCStrings([String],([UnsafeMutablePointer<CChar>]) -> R) -> R
Modified expectEqual(T, T, StdlibUnittest.SourceLocStack?,(() -> String)?, String, UWord)
Declaration | |
---|---|
From | func expectEqual<T : ForwardIndexType>(_ expected: T, _ actual: T, stackTrace stackTrace: StdlibUnittest.SourceLocStack? = default, _ collectMoreInfo: (() -> String)? = default, file file: String = default, line line: UWord = default) |
To | func expectEqual<T : Equatable>(_ expected: T, _ actual: T, stackTrace stackTrace: StdlibUnittest.SourceLocStack? = default, _ collectMoreInfo: (() -> String)? = default, file file: String = default, line line: UWord = default) |