From 6a93763be9a57e55f59a9b52617b75cc758ef74b Mon Sep 17 00:00:00 2001 From: Richard Viney Date: Wed, 31 Jan 2024 06:33:31 +1300 Subject: Remove base16 variant. Add support for partial bytes. --- test/gleam/bit_array_test.gleam | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'test') diff --git a/test/gleam/bit_array_test.gleam b/test/gleam/bit_array_test.gleam index ca94f1a..f12f57a 100644 --- a/test/gleam/bit_array_test.gleam +++ b/test/gleam/bit_array_test.gleam @@ -289,15 +289,13 @@ pub fn inspect_test() { bit_array.inspect(<<0, 20, 0x20, 255>>) |> should.equal("<<0, 20, 32, 255>>") -} -pub fn inspect_base16_test() { - bit_array.inspect_base16(<<>>) - |> should.equal("<<>>") + bit_array.inspect(<<4:5>>) + |> should.equal("<<4:size(5)>>") - bit_array.inspect_base16(<<0x80>>) - |> should.equal("<<80>>") + bit_array.inspect(<<100, 5:3>>) + |> should.equal("<<100, 5:size(3)>>") - bit_array.inspect_base16(<<0, 20, 0x20, 255>>) - |> should.equal("<<00 14 20 FF>>") + bit_array.inspect(<<5:3, 11:4, 1:2>>) + |> should.equal("<<182, 1:size(1)>>") } -- cgit v1.2.3