diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-04-13 10:39:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-13 08:39:45 +0000 |
| commit | 020294fca9a7065d4b9cf4e677f606ebaaa29b00 (patch) | |
| tree | c0027ad22046e2726c22298461327823d6b88d53 /tests/typ/compiler/bytes.typ | |
| parent | 72dd79210602ecc799726fc096b078afbb47f299 (diff) | |
Better test runner (#3922)
Diffstat (limited to 'tests/typ/compiler/bytes.typ')
| -rw-r--r-- | tests/typ/compiler/bytes.typ | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/typ/compiler/bytes.typ b/tests/typ/compiler/bytes.typ deleted file mode 100644 index a9249bdd..00000000 --- a/tests/typ/compiler/bytes.typ +++ /dev/null @@ -1,32 +0,0 @@ -// Test the bytes type. -// Ref: false - ---- -#let data = read("/assets/images/rhino.png", encoding: none) -#test(data.len(), 232243) -#test(data.slice(0, count: 5), bytes((137, 80, 78, 71, 13))) -#test(str(data.slice(1, 4)), "PNG") -#test(repr(data), "bytes(232243)") - ---- -#test(str(bytes(range(0x41, 0x50))), "ABCDEFGHIJKLMNO") -#test(array(bytes("Hello")), (0x48, 0x65, 0x6C, 0x6C, 0x6F)) - ---- -// Test addition and joining. -#test(bytes((1, 2)) + bytes(()), bytes((1, 2))) -#test(bytes((1, 2)) + bytes((3, 4)), bytes((1, 2, 3, 4))) -#test(bytes(()) + bytes((3, 4)), bytes((3, 4))) -#test(str({ - bytes("Hello") - bytes((0x20,)) - bytes("World") -}), "Hello World") - ---- -// Error: 8-14 expected string, array, or bytes, found dictionary -#bytes((a: 1)) - ---- -// Error: 8-15 expected array, bytes, or version, found string -#array("hello") |
