aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/gleam/bit_builder_test.gleam (renamed from test/gleam/bit_string_builder_test.gleam)7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/gleam/bit_string_builder_test.gleam b/test/gleam/bit_builder_test.gleam
index 43e010a..b1635e5 100644
--- a/test/gleam/bit_string_builder_test.gleam
+++ b/test/gleam/bit_builder_test.gleam
@@ -56,3 +56,10 @@ pub fn concat_test() {
|> bit_builder.to_bit_string
|> should.equal(<<1, 2, 3, 4, 5, 6>>)
}
+
+pub fn from_string_test() {
+ // Regression test: no additional modification of the builder
+ bit_builder.from_bit_string(<<>>)
+ |> bit_builder.to_bit_string
+ |> should.equal(<<>>)
+}