-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
210 changed files
with
30,053 additions
and
27,682 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
import ImportsAPublicly | ||
// Don't need to import ModuleA because of the file being a `import public` | ||
|
||
import XCTest | ||
|
||
final class ExampleTests: XCTestCase { | ||
func testA() { | ||
let anA = A.with { $0.e = .a } | ||
XCTAssertEqual(anA.e, .a) | ||
} | ||
// Don't need to import ModuleA because of the file being a `import public` | ||
|
||
func testImportsAPublicly() { | ||
let imports = ImportsAPublicly.with { $0.a.e = .a } | ||
XCTAssertEqual(imports.a.e, .a) | ||
} | ||
final class ExampleTests: XCTestCase { | ||
func testA() { | ||
let anA = A.with { $0.e = .a } | ||
XCTAssertEqual(anA.e, .a) | ||
} | ||
|
||
func testInterop() { | ||
let anA = A.with { $0.e = .b } | ||
let imports = ImportsAPublicly.with { | ||
$0.a = anA | ||
$0.e = .b | ||
func testImportsAPublicly() { | ||
let imports = ImportsAPublicly.with { $0.a.e = .a } | ||
XCTAssertEqual(imports.a.e, .a) | ||
} | ||
XCTAssertEqual(imports.a.e, imports.e) | ||
let transitively = UsesATransitively.with { | ||
$0.a = anA | ||
$0.e = imports.e | ||
|
||
func testInterop() { | ||
let anA = A.with { $0.e = .b } | ||
let imports = ImportsAPublicly.with { | ||
$0.a = anA | ||
$0.e = .b | ||
} | ||
XCTAssertEqual(imports.a.e, imports.e) | ||
let transitively = UsesATransitively.with { | ||
$0.a = anA | ||
$0.e = imports.e | ||
} | ||
XCTAssertEqual(transitively.a, anA) | ||
XCTAssertEqual(transitively.e, imports.e) | ||
} | ||
XCTAssertEqual(transitively.a, anA) | ||
XCTAssertEqual(transitively.e, imports.e) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
import ImportsImportsAPublicly | ||
// Don't need to import ModuleA because of the file being a `import public` | ||
|
||
import XCTest | ||
|
||
final class ExampleTests: XCTestCase { | ||
func testA() { | ||
let anA = A.with { $0.e = .a } | ||
XCTAssertEqual(anA.e, .a) | ||
} | ||
// Don't need to import ModuleA because of the file being a `import public` | ||
|
||
func testImportsImportsAPublicly() { | ||
let imports = ImportsImportsAPublicly.with { $0.a.e = .a } | ||
XCTAssertEqual(imports.a.e, .a) | ||
} | ||
final class ExampleTests: XCTestCase { | ||
func testA() { | ||
let anA = A.with { $0.e = .a } | ||
XCTAssertEqual(anA.e, .a) | ||
} | ||
|
||
func testInterop() { | ||
let anA = A.with { $0.e = .b } | ||
let imports = ImportsImportsAPublicly.with { | ||
$0.a = anA | ||
$0.e = .b | ||
func testImportsImportsAPublicly() { | ||
let imports = ImportsImportsAPublicly.with { $0.a.e = .a } | ||
XCTAssertEqual(imports.a.e, .a) | ||
} | ||
XCTAssertEqual(imports.a.e, imports.e) | ||
let transitively = UsesATransitively2.with { | ||
$0.a = anA | ||
$0.e = imports.e | ||
|
||
func testInterop() { | ||
let anA = A.with { $0.e = .b } | ||
let imports = ImportsImportsAPublicly.with { | ||
$0.a = anA | ||
$0.e = .b | ||
} | ||
XCTAssertEqual(imports.a.e, imports.e) | ||
let transitively = UsesATransitively2.with { | ||
$0.a = anA | ||
$0.e = imports.e | ||
} | ||
XCTAssertEqual(transitively.a, anA) | ||
XCTAssertEqual(transitively.e, imports.e) | ||
} | ||
XCTAssertEqual(transitively.a, anA) | ||
XCTAssertEqual(transitively.e, imports.e) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.