Skip to content

Commit 5795324

Browse files
author
Matt Zanchelli
committed
Add documentation on algorithmic complexity
1 parent e1b2b0a commit 5795324

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tests/SwiftAlgorithmsTests/TestUtilities.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ func XCTAssertEqualSequences<S1: Sequence, S2: Sequence>(
8686

8787
/// Asserts two sequences contain exactly the same elements but not necessarily
8888
/// in the same order.
89+
/// - Complexity: O(*n* * *m*) where *n* is the number of elements in the first
90+
/// sequence and *m* is the number of elements in the second sequence
8991
func XCTAssertUnorderedEqualSequences<S1: Sequence, S2: Sequence>(
9092
_ expression1: @autoclosure () throws -> S1,
9193
_ expression2: @autoclosure () throws -> S2,

0 commit comments

Comments
 (0)