diff options
author | Louis Pilfold <louis@lpil.uk> | 2021-08-08 20:39:26 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2021-08-08 20:39:26 +0100 |
commit | b0456846292552c3136b40ba5077fe776cb1f71e (patch) | |
tree | c933ee96b48724c68388aeef66aa6e10ff324ef3 /test | |
parent | 59b3954de6c3fe07398403592331e27496cd7811 (diff) | |
download | gleam_stdlib-b0456846292552c3136b40ba5077fe776cb1f71e.tar.gz gleam_stdlib-b0456846292552c3136b40ba5077fe776cb1f71e.zip |
bit_string.concat
Diffstat (limited to 'test')
-rw-r--r-- | test/gleam/bit_string_test.gleam | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/gleam/bit_string_test.gleam b/test/gleam/bit_string_test.gleam index 199e1cb..e86dd5d 100644 --- a/test/gleam/bit_string_test.gleam +++ b/test/gleam/bit_string_test.gleam @@ -23,6 +23,16 @@ pub fn append_test() { |> should.equal(<<1, 2, 3, 4>>) } +pub fn concat_test() { + [<<1, 2>>] + |> bit_string.concat + |> should.equal(<<1, 2>>) + + [<<1, 2>>, <<3>>, <<4>>] + |> bit_string.concat + |> should.equal(<<1, 2, 3, 4>>) +} + if erlang { pub fn part_test() { bit_string.from_string("hello") |