Skip to content

Commit

Permalink
Fix Array bridges error && update swift3 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongwuzw committed Jun 6, 2017
1 parent 38cc5d3 commit fc575c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UberSignalsTests/SwiftTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class SwiftTests: XCTestCase {

let signal2 = UBArraySignal()
signal2.addObserver(self) { (listener, result) in
XCTAssertEqual(result, NSArray(objects: "result"), "Should have signaled correct result")
XCTAssertEqual(result as NSArray, NSArray(objects: "result"), "Should have signaled correct result")
observed += 1
}
signal2.fire()(["result"])
Expand Down Expand Up @@ -109,7 +109,7 @@ class SwiftTests: XCTestCase {
}

observer.onSwiftSignal.fire()("1")
observer.onSwiftDoubleSignal.fire()("1", NSNumber(integer: 2))
observer.onSwiftDoubleSignal.fire()("1", NSNumber(value: 2 as Int))
XCTAssertEqual(observed, 2, "Should have fired callback")
}
}

0 comments on commit fc575c7

Please sign in to comment.