diff options
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") |