Skip to content

Instantly share code, notes, and snippets.

@truizlop
Last active July 24, 2018 12:15
Show Gist options
  • Save truizlop/080bd962cf8d6f8d6e8cd6be841ba372 to your computer and use it in GitHub Desktop.
Save truizlop/080bd962cf8d6f8d6e8cd6be841ba372 to your computer and use it in GitHub Desktop.
func testStringConcat() {
let a = "Hello, "
let b = "World!"
let result = "Hello, World!"
XCTAssertEqual(result, concat(first: a, second: b))
let c = "Another "
let d = "example"
let result2 = "Another example"
XCTAssertEqual(result2, concat(first: c, second: d))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment