We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe3599d commit b8307b6Copy full SHA for b8307b6
SocketIO-MacTests/SocketEngineTest.swift
@@ -79,10 +79,8 @@ class SocketEngineTest: XCTestCase {
79
let expectation = expectationWithDescription("Engine Decodes utf8")
80
81
client.on("stringTest") {data, ack in
82
- if let str = data[0] as? String {
83
- assert(str == "lïne one\nlīne \rtwo", "Failed string test")
84
- expectation.fulfill()
85
- }
+ XCTAssertEqual(data[0] as? String, "lïne one\nlīne \rtwo", "Failed string test")
+ expectation.fulfill()
86
}
87
88
engine.parsePollingMessage("41:42[\"stringTest\",\"lïne one\\nlīne \\rtwo\"]")
0 commit comments