Skip to content

Instantly share code, notes, and snippets.

@truizlop
Created July 24, 2018 12:20
Show Gist options
  • Save truizlop/74ba7987db8d6c625212c75c73599456 to your computer and use it in GitHub Desktop.
Save truizlop/74ba7987db8d6c625212c75c73599456 to your computer and use it in GitHub Desktop.
func testConcatLengthIsEqualToSumOfLengths() {
for _ in 0 ..< 100 {
let a = randomString()
let b = randomString()
let result = concat(first: a, second: b)
XCTAssertEqual(result.length, a.length + b.length)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment