Skip to content

Instantly share code, notes, and snippets.

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