Skip to content

Commit

Permalink
fixed linux tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samdeane committed Jun 10, 2020
1 parent 051adeb commit 5596c00
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/ExpressionsTests/ExpressionsTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ class ExpressionTests: XCTestCase {
XCTAssertFalse(positionalCapturePattern.firstMatch(in: "Wrong", capturing: [\Result.first: 1, \Result.last: 3, \Result.number: 2], into: &result))
}

#if canImport(ObjectiveC)

func testNamedCapture() {
#if canImport(ObjectiveC)
class Result: NSObject {
@objc var first = ""
@objc var last = ""
Expand All @@ -72,10 +72,11 @@ class ExpressionTests: XCTestCase {
XCTAssertEqual(result.last, "Deane")
XCTAssertEqual(result.number, 123)
}

#endif
}

func testNamedCapturePassedIn() {
#if canImport(ObjectiveC)
class Result: NSObject {
@objc var first = ""
@objc var last = ""
Expand All @@ -88,7 +89,6 @@ class ExpressionTests: XCTestCase {
XCTAssertEqual(result.last, "Deane")
XCTAssertEqual(result.number, 123)
}

#endif
}
#endif
}

0 comments on commit 5596c00

Please sign in to comment.