Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/Testing/Test+Macro.swift
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ extension Test {
arguments zippedCollections: @escaping @Sendable () async throws -> Zip2Sequence<C1, C2>,
sourceBounds: __SourceBounds,
parameters paramTuples: [__Parameter],
testFunction: nonisolated(nonsending) @escaping @Sendable (C1.Element, C2.Element) async throws -> Void
testFunction: nonisolated(nonsending) @escaping @Sendable ((C1.Element, C2.Element)) async throws -> Void
) -> Self where S: ~Copyable & ~Escapable, C1: Collection & Sendable, C1.Element: Sendable, C2: Collection & Sendable, C2.Element: Sendable {
let containingTypeInfo = containingType.map { TypeInfo($0, sourceBounds: sourceBounds) }
let parameters = paramTuples.parameters
Expand Down Expand Up @@ -754,7 +754,7 @@ extension Test {
arguments zippedCollections: @escaping @Sendable () async throws -> Zip2Sequence<C1, C2>,
sourceBounds: __SourceBounds,
parameters paramTuples: [__Parameter],
testFunction: nonisolated(nonsending) @escaping @Sendable (C1.Element, C2.Element) async throws -> Void
testFunction: nonisolated(nonsending) @escaping @Sendable ((C1.Element, C2.Element)) async throws -> Void
) -> Self where S: ~Copyable & ~Escapable, C1: Collection & Sendable, C1.Element: Sendable & CustomTestStringConvertible, C2: Collection & Sendable, C2.Element: Sendable & CustomTestStringConvertible {
let containingTypeInfo = containingType.map { TypeInfo($0, sourceBounds: sourceBounds) }
let parameters = paramTuples.parameters
Expand Down
5 changes: 5 additions & 0 deletions Tests/TestingTests/ZipTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,9 @@ struct ZipTests {
func allElementsEqual(i: Int, j: Int) {
#expect(i == j)
}

@Test("Zipped collections can be passed as a single argument", arguments: zip("abc", "def"))
func singleArgument(ij: (Character, Character)) {
#expect(ij.0 < ij.1)
}
}
Loading