From e8b2a22b47a0a7677aae55d25a2bacf3969cc788 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Thu, 5 Mar 2020 11:24:57 +0000 Subject: string.concat --- test/gleam/string_test.gleam | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') 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!") +} -- cgit v1.2.3