Skip to content

Commit 94a7ece

Browse files
authoredApr 8, 2022
Moves XCTestCase.validate into its own module (#135)
* Move XCTestCase.validate into it’s own module * Remove unnecessary import statement
1 parent 6a8aec2 commit 94a7ece

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed
 

Diff for: ‎Package.swift

+11-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ let package = Package(
1313
products: [
1414
.library(name: "AsyncAlgorithms", targets: ["AsyncAlgorithms"]),
1515
.library(name: "AsyncSequenceValidation", targets: ["AsyncSequenceValidation"]),
16-
.library(name: "_CAsyncSequenceValidationSupport", type: .static, targets: ["AsyncSequenceValidation"])
16+
.library(name: "_CAsyncSequenceValidationSupport", type: .static, targets: ["AsyncSequenceValidation"]),
17+
.library(name: "AsyncAlgorithms_XCTest", targets: ["AsyncAlgorithms_XCTest"]),
1718
],
1819
dependencies: [],
1920
targets: [
@@ -22,9 +23,17 @@ let package = Package(
2223
name: "AsyncSequenceValidation",
2324
dependencies: ["_CAsyncSequenceValidationSupport", "AsyncAlgorithms"]),
2425
.systemLibrary(name: "_CAsyncSequenceValidationSupport"),
26+
.target(
27+
name: "AsyncAlgorithms_XCTest",
28+
dependencies: ["AsyncAlgorithms", "AsyncSequenceValidation"],
29+
swiftSettings: [
30+
.unsafeFlags([
31+
"-Xfrontend", "-disable-availability-checking"
32+
])
33+
]),
2534
.testTarget(
2635
name: "AsyncAlgorithmsTests",
27-
dependencies: ["AsyncAlgorithms", "AsyncSequenceValidation"],
36+
dependencies: ["AsyncAlgorithms", "AsyncSequenceValidation", "AsyncAlgorithms_XCTest"],
2837
swiftSettings: [
2938
.unsafeFlags([
3039
"-Xfrontend", "-disable-availability-checking"

Diff for: ‎Tests/AsyncAlgorithmsTests/TestValidationTests.swift

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import XCTest
1313
import AsyncAlgorithms
1414
import AsyncSequenceValidation
15+
@testable import AsyncAlgorithms_XCTest
1516

1617
final class TestValidationDiagram: XCTestCase {
1718
func test_diagram() {

0 commit comments

Comments
 (0)
Please sign in to comment.