1
1
mirror of https://github.com/wader/fq.git synced 2024-12-23 13:22:58 +03:00

text,test: Unbeak base64 tests

This commit is contained in:
Mattias Wadman 2022-12-05 20:51:30 +01:00
parent 92eadf9876
commit 47a568e076

View File

@ -1,4 +1,18 @@
$ fq -n '"ff7f00" | frombase64 | ., (("", "std", "url", "rawstd", "rawurl") as $e | tobase64({encoding: $e}) | ., frombase64({encoding: $e})
exitcode: 3
stderr:
error: arg:1:131: unexpected EOF
$ fq -n '"ff7f00ff" | fromhex | ., ("", "std", "url", "rawstd", "rawurl") as $e | tobase64({encoding: $e}) | ., frombase64({encoding: $e})'
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
0x0|ff 7f 00 ff| |....| |.: raw bits 0x0-0x3.7 (4)
"/38A/w=="
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
0x0|ff 7f 00 ff| |....| |.: raw bits 0x0-0x3.7 (4)
"/38A/w=="
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
0x0|ff 7f 00 ff| |....| |.: raw bits 0x0-0x3.7 (4)
"_38A_w=="
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
0x0|ff 7f 00 ff| |....| |.: raw bits 0x0-0x3.7 (4)
"/38A/w"
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
0x0|ff 7f 00 ff| |....| |.: raw bits 0x0-0x3.7 (4)
"_38A_w"
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
0x0|ff 7f 00 ff| |....| |.: raw bits 0x0-0x3.7 (4)