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:
parent
92eadf9876
commit
47a568e076
22
format/text/testdata/base64.fqtest
vendored
22
format/text/testdata/base64.fqtest
vendored
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user