 
 extension NSTimeInterval {
     func format(f: String) -> String {
-        return NSString(format: "%\(f)f", self)
+        return String(format: "%\(f)f", self)
     }
 }
 
 extension XCTestCase {
     var records: [Failure]! {
         get {
-            return objc_getAssociatedObject(self, &AssociatedObjectHandle) as [Failure]!
+            return objc_getAssociatedObject(self, &AssociatedObjectHandle) as! [Failure]!
         }
         set {
             objc_setAssociatedObject(self, &AssociatedObjectHandle, newValue,

    let lineNumber: UInt
    let expected: Bool

     func description() -> String {
        return self.failureDescription
    }


}

func XCTestRunAll() -> Bool {
    let suite = XCTestSuite.defaultTestSuite() as! XCTestSuite!
    let suiteRun = suite.run() as! XCTestSuiteRun
    var failureCount = 0

    for testRun in suiteRun.testRuns {
        let suites = ((testRun as! XCTestRun).test as! XCTestSuite).tests

        for suite in suites {
            let testCaseName = suite.name
            println(testCaseName + "\n")

            for test in (suite as! XCTestSuite).tests {
                let testCase = test as! XCTestCase

                print(testCase.success ? "✅" : "❌")
                println("  \(testCase.name)")
