Damian Kołakowski 10 лет назад
Родитель
Сommit
fabd05fa2b

+ 3 - 3
XCode/Swifter.xcodeproj/xcshareddata/xcschemes/SwiftertvOS.xcscheme

@@ -15,7 +15,7 @@
             <BuildableReference
                BuildableIdentifier = "primary"
                BlueprintIdentifier = "269B47861D3AAAE20042D137"
-               BuildableName = "SwiftertvOS.framework"
+               BuildableName = "Swifter.framework"
                BlueprintName = "SwiftertvOS"
                ReferencedContainer = "container:Swifter.xcodeproj">
             </BuildableReference>
@@ -46,7 +46,7 @@
          <BuildableReference
             BuildableIdentifier = "primary"
             BlueprintIdentifier = "269B47861D3AAAE20042D137"
-            BuildableName = "SwiftertvOS.framework"
+            BuildableName = "Swifter.framework"
             BlueprintName = "SwiftertvOS"
             ReferencedContainer = "container:Swifter.xcodeproj">
          </BuildableReference>
@@ -64,7 +64,7 @@
          <BuildableReference
             BuildableIdentifier = "primary"
             BlueprintIdentifier = "269B47861D3AAAE20042D137"
-            BuildableName = "SwiftertvOS.framework"
+            BuildableName = "Swifter.framework"
             BlueprintName = "SwiftertvOS"
             ReferencedContainer = "container:Swifter.xcodeproj">
          </BuildableReference>

+ 6 - 6
XCode/SwifterTestsCommon/SwifterTestsWebSocketSession.swift

@@ -82,27 +82,27 @@ class SwifterTestsWebSocketSession: XCTestCase {
         }
         
         do {
-            let session = WebSocketSession(TestSocket([0b0000_1000, 0b1000_0000, 0, 0, 0, 0]))
+            let session = WebSocketSession(TestSocket([0b1000_1000, 0b1000_0000, 0, 0, 0, 0]))
             let frame = try session.readFrame()
             XCTAssertEqual(frame.opcode, WebSocketSession.OpCode.Close, "Parser should accept Close opcode.")
         } catch {
-            XCTAssert(false, "Parser should accept Close opcode without any errors.")
+            XCTAssert(false, "Parser should accept Close opcode without any errors: \(error).")
         }
         
         do {
-            let session = WebSocketSession(TestSocket([0b0000_1001, 0b1000_0000, 0, 0, 0, 0]))
+            let session = WebSocketSession(TestSocket([0b1000_1001, 0b1000_0000, 0, 0, 0, 0]))
             let frame = try session.readFrame()
             XCTAssertEqual(frame.opcode, WebSocketSession.OpCode.Ping, "Parser should accept Ping opcode.")
         } catch {
-            XCTAssert(false, "Parser should accept Ping opcode without any errors.")
+            XCTAssert(false, "Parser should accept Ping opcode without any errors: \(error).")
         }
         
         do {
-            let session = WebSocketSession(TestSocket([0b0000_1010, 0b1000_0000, 0, 0, 0, 0]))
+            let session = WebSocketSession(TestSocket([0b1000_1010, 0b1000_0000, 0, 0, 0, 0]))
             let frame = try session.readFrame()
             XCTAssertEqual(frame.opcode, WebSocketSession.OpCode.Pong, "Parser should accept Pong opcode.")
         } catch {
-            XCTAssert(false, "Parser should accept Pong opcode without any errors.")
+            XCTAssert(false, "Parser should accept Pong opcode without any errors: \(error).")
         }
         
         for opcode in [3, 4, 5, 6, 7, 11, 12, 13, 14, 15] {