mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
encoding.base32: vfmt code
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
import encoding.base32
|
||||
|
||||
|
||||
// TODO: add more tests
|
||||
|
||||
fn test_encode_and_decode() {
|
||||
@ -8,10 +7,8 @@ fn test_encode_and_decode() {
|
||||
|
||||
encoded := base32.encode_string_to_string(input)
|
||||
assert encoded == 'NBSWY3DPEB3A===='
|
||||
|
||||
decoded := base32.decode_string_to_string(encoded) or {
|
||||
panic('error decoding: $err')
|
||||
}
|
||||
|
||||
decoded := base32.decode_string_to_string(encoded) or { panic('error decoding: $err') }
|
||||
assert decoded == input
|
||||
|
||||
encoder_no_padding := base32.new_std_encoding_with_padding(base32.no_padding)
|
||||
|
Reference in New Issue
Block a user