aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2020-07-10 21:13:36 +0100
committerLouis Pilfold <louis@lpil.uk>2020-07-10 21:13:36 +0100
commit0cff914b427e2d37a3b889e0f9586ab59cef3d39 (patch)
tree85dd6f98c2630f69e0c6ea8bbc56a60fb01117c4 /test
parent28fdf1078ca67f224944bffebe46151ba4a9234a (diff)
downloadgleam_stdlib-0cff914b427e2d37a3b889e0f9586ab59cef3d39.tar.gz
gleam_stdlib-0cff914b427e2d37a3b889e0f9586ab59cef3d39.zip
bit_builder.from_string
Diffstat (limited to 'test')
-rw-r--r--test/gleam/bit_builder_test.gleam9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/gleam/bit_builder_test.gleam b/test/gleam/bit_builder_test.gleam
index b1635e5..48ea555 100644
--- a/test/gleam/bit_builder_test.gleam
+++ b/test/gleam/bit_builder_test.gleam
@@ -57,9 +57,16 @@ pub fn concat_test() {
|> should.equal(<<1, 2, 3, 4, 5, 6>>)
}
-pub fn from_string_test() {
+pub fn from_bit_string_test() {
// Regression test: no additional modification of the builder
bit_builder.from_bit_string(<<>>)
|> bit_builder.to_bit_string
|> should.equal(<<>>)
}
+
+pub fn from_string_test() {
+ // Regression test: no additional modification of the builder
+ bit_builder.from_string("")
+ |> bit_builder.to_bit_string
+ |> should.equal(<<>>)
+}