Created
July 24, 2018 12:21
-
-
Save truizlop/c19d25edb8f01fbfac1064dadb9f1f63 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
func testConcatIsAssociative() { | |
for _ in 0 ..< 100 { | |
let a = randomString() | |
let b = randomString() | |
let c = randomString() | |
let result1 = concat(first: concat(first: a, second: b), second: c) | |
let result2 = concat(first: a, second: concat(first: b, second: c)) | |
XCTAssertEqual(result1, result2) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment