Skip to content

Commit 696cc1c

Browse files
authored
Merge pull request #4097 from apple/StdlibUnittest-fix-warning
StdlibUnittest: fix a warning by actually using the unused value
2 parents bd55d89 + 66b5bc0 commit 696cc1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/private/StdlibCollectionUnittest/CheckSequenceType.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1792,7 +1792,7 @@ self.test("\(testNamePrefix).first/semantics") {
17921792
stackTrace: SourceLocStack().with(test.loc))
17931793
if let expectedIdentity = test.expected {
17941794
expectEqual(
1795-
test.expected, extractValueFromEquatable(found!).identity,
1795+
expectedIdentity, extractValueFromEquatable(found!).identity,
17961796
"find() should find only the first element matching its predicate")
17971797
}
17981798
}

0 commit comments

Comments
 (0)