diff options
author | Louis Pilfold <louis@lpil.uk> | 2020-03-05 11:24:57 +0000 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2020-03-05 11:24:57 +0000 |
commit | e8b2a22b47a0a7677aae55d25a2bacf3969cc788 (patch) | |
tree | f3cef3896d7bce0b901309d76141c74373bd75bc /test | |
parent | 063c640b5e59c00262fd17b62c33dc470c1e1863 (diff) | |
download | gleam_stdlib-e8b2a22b47a0a7677aae55d25a2bacf3969cc788.tar.gz gleam_stdlib-e8b2a22b47a0a7677aae55d25a2bacf3969cc788.zip |
string.concat
Diffstat (limited to 'test')
-rw-r--r-- | test/gleam/string_test.gleam | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/gleam/string_test.gleam b/test/gleam/string_test.gleam index 15a30f8..f4f9089 100644 --- a/test/gleam/string_test.gleam +++ b/test/gleam/string_test.gleam @@ -66,3 +66,11 @@ pub fn compare_test() { string.compare("t", "ABC") |> expect.equal(_, order.Gt) } + +pub fn concat_test() { + [ + "Hello", ", ", "world!", + ] + |> string.concat + |> expect.equal(_, "Hello, world!") +} |