aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRichard Viney <richard.viney@gmail.com>2024-01-31 06:33:31 +1300
committerLouis Pilfold <louis@lpil.uk>2024-02-15 11:26:10 +0000
commit6a93763be9a57e55f59a9b52617b75cc758ef74b (patch)
treec94c84baf536c9f77bf0ee1311cc3521ba8b11d7 /test
parentbd785507c5238ac1293137decb612a50a725bc75 (diff)
downloadgleam_stdlib-6a93763be9a57e55f59a9b52617b75cc758ef74b.tar.gz
gleam_stdlib-6a93763be9a57e55f59a9b52617b75cc758ef74b.zip
Remove base16 variant. Add support for partial bytes.
Diffstat (limited to 'test')
-rw-r--r--test/gleam/bit_array_test.gleam14
1 files changed, 6 insertions, 8 deletions
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)>>")
}