From 0cff914b427e2d37a3b889e0f9586ab59cef3d39 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Fri, 10 Jul 2020 21:13:36 +0100 Subject: bit_builder.from_string --- test/gleam/bit_builder_test.gleam | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'test') 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(<<>>) +} -- cgit v1.2.3