Documentation Archive Developer
Search

StdlibUnittest Changes

StdlibUnittest (Added)

Added AssertionResult [struct]
Added AssertionResult.boolValue
Added AssertionResult.description
Added AssertionResult.init(isPass: Bool)
Added AssertionResult.withDescription(String) -> StdlibUnittest.AssertionResult
Added ExecuteSwiftClosureContext [struct]
Added ExecuteSwiftClosureContext.arg
Added ExecuteSwiftClosureContext.argumentTypeMetadata
Added ExecuteSwiftClosureContext.closure
Added ExecuteSwiftClosureContext.resultTypeMetadata
Added ExpectedComparisonResult [enum]
Added ExpectedComparisonResult.EQ
Added ExpectedComparisonResult.GT
Added ExpectedComparisonResult.LT
Added ExpectedComparisonResult.flip() -> StdlibUnittest.ExpectedComparisonResult
Added ExpectedComparisonResult.isEQ() -> Bool
Added ExpectedComparisonResult.isGE() -> Bool
Added ExpectedComparisonResult.isGT() -> Bool
Added ExpectedComparisonResult.isLE() -> Bool
Added ExpectedComparisonResult.isLT() -> Bool
Added ExpectedComparisonResult.isNE() -> Bool
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 SourceLoc [struct]
Added SourceLoc.init(_: String, _: UWord, comment: String?)
Added SourceLoc.comment
Added SourceLoc.file
Added SourceLoc.line
Added SourceLoc.withCurrentLoc(String, line: UWord) -> StdlibUnittest.SourceLocStack
Added SourceLocStack [struct]
Added SourceLocStack.init()
Added SourceLocStack.init(_: StdlibUnittest.SourceLoc)
Added SourceLocStack.init(_locs: [StdlibUnittest.SourceLoc])
Added SourceLocStack.isEmpty
Added SourceLocStack.locs
Added SourceLocStack.with(StdlibUnittest.SourceLoc) -> StdlibUnittest.SourceLocStack
Added SourceLocStack.withCurrentLoc(String, line: UWord) -> StdlibUnittest.SourceLocStack
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 assertionFailure() -> StdlibUnittest.AssertionResult
Added assertionSuccess() -> StdlibUnittest.AssertionResult
Added checkCollection([Element], C, StdlibUnittest.SourceLocStack)
Added checkComparable(StdlibUnittest.ExpectedComparisonResult, T, T, StdlibUnittest.SourceLocStack)
Added checkComparable(StdlibUnittest.ExpectedComparisonResult, T, T, String, UWord)
Added checkEquatable(Bool, T, T,(() -> String)?, String, UWord)
Added checkEquatable(Bool, T, T, StdlibUnittest.SourceLocStack,(() -> String)?)
Added checkGenerator([Element], G, StdlibUnittest.SourceLocStack)
Added checkHashable(Bool, T, T,(() -> String)?, String, UWord)
Added checkHashable(Bool, T, T, StdlibUnittest.SourceLocStack,(() -> String)?)
Added checkRangeReplaceable(() -> C,(Int) -> N)
Added checkSequence([Element], S, StdlibUnittest.SourceLocStack)
Added checkSliceableWithBidirectionalIndex([Element], S, StdlibUnittest.SourceLocStack)
Added chiSquaredUniform2(Int, Int, Double) -> Bool
Added consumeCPU(Int)
Added createTemporaryFile(String, String, String) -> String
Added evaluateObservationsAllEqual([T]) -> StdlibUnittest.RaceTestObservationEvaluation
Added expectCrashLater()
Added expectEmpty(T?, StdlibUnittest.SourceLocStack?, String, UWord)
Added expectEqual(ContiguousArray<T>, ContiguousArray<T>, StdlibUnittest.SourceLocStack?,(() -> String)?, String, UWord)
Added expectEqual(Slice<T>, Slice<T>, StdlibUnittest.SourceLocStack?,(() -> String)?, String, UWord)
Added expectEqual(T, T,(T, T) -> Bool, StdlibUnittest.SourceLocStack?,(() -> String)?, String, UWord)
Added expectEqual(T, T, StdlibUnittest.SourceLocStack?,(() -> String)?, String, UWord)
Added expectEqual([T: U],[T: U], StdlibUnittest.SourceLocStack?,(() -> String)?, String, UWord)
Added expectEqual([T],[T], StdlibUnittest.SourceLocStack?,(() -> String)?, String, UWord)
Added expectEqualSequence(Expected, Actual,(Expected.Generator.Element, Expected.Generator.Element) -> Bool, StdlibUnittest.SourceLocStack?,(() -> String)?, String, UWord)
Added expectEqualSequence(Expected, Actual, StdlibUnittest.SourceLocStack?,(() -> String)?, String, UWord)
Added expectEqualUnicodeScalars([UInt32], String, StdlibUnittest.SourceLocStack?,(() -> String)?, String, UWord)
Added expectFalse(Bool, StdlibUnittest.SourceLocStack?,(() -> String)?, String, UWord)
Added expectFalse(StdlibUnittest.AssertionResult, StdlibUnittest.SourceLocStack?,(() -> String)?, String, UWord)
Added expectGE(Int, Int, String, UWord)
Added expectLE(Int, Int, String, UWord)
Added expectNotEmpty(T?, String, UWord)
Added expectNotEqual(T, T, StdlibUnittest.SourceLocStack?, String, UWord)
Added expectOptionalEqual(T, T?, 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 getFloat80(Float80) -> Float80
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 nth(C, Int) -> C.Generator.Element
Added nthIndex(C, Int) -> C.Index
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