aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Varner <varnerac@users.noreply.github.com>2022-06-21 23:03:42 -0400
committerLouis Pilfold <louis@lpil.uk>2022-06-23 17:28:34 +0100
commit5abe5464d9a633d75949fa305485a5a876c866fd (patch)
treea06eb4f2ab11e8f2dbcc8c5c40a8e1c2cb5b0c36 /test
parent4607b89d02c8c4091566a9f709db2721f2f26486 (diff)
downloadgleam_stdlib-5abe5464d9a633d75949fa305485a5a876c866fd.tar.gz
gleam_stdlib-5abe5464d9a633d75949fa305485a5a876c866fd.zip
Add `concat_bit_strings` fun to `bit_builder`
Diffstat (limited to 'test')
-rw-r--r--test/gleam/bit_builder_test.gleam6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/gleam/bit_builder_test.gleam b/test/gleam/bit_builder_test.gleam
index 7ffa590..99994e5 100644
--- a/test/gleam/bit_builder_test.gleam
+++ b/test/gleam/bit_builder_test.gleam
@@ -60,6 +60,12 @@ pub fn concat_test() {
|> should.equal(<<1, 2, 3, 4, 5, 6>>)
}
+pub fn concat_bit_strings_test() {
+ bit_builder.concat_bit_strings([<<"h":utf8>>, <<"e":utf8>>, <<"y":utf8>>])
+ |> bit_builder.to_bit_string
+ |> should.equal(<<"hey":utf8>>)
+}
+
pub fn from_bit_string_test() {
// Regression test: no additional modification of the builder
bit_builder.from_bit_string(<<>>)