mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vfmt: change all '$expr' to '${expr}' (#16428)
This commit is contained in:
@@ -331,5 +331,5 @@ fn strip_newlines(src []u8) []u8 {
|
||||
|
||||
fn corrupt_input_error_msg(e int) string {
|
||||
// return error('illegal base32 data at input byte ' + strconv.FormatInt(int64(e), 10)
|
||||
return 'illegal base32 data at input byte $e'
|
||||
return 'illegal base32 data at input byte ${e}'
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ 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)
|
||||
@@ -16,7 +16,7 @@ fn test_encode_and_decode() {
|
||||
assert encoded2 == 'NBSWY3DPEB3A'
|
||||
|
||||
decoded2 := encoder_no_padding.decode_string_to_string(encoded2) or {
|
||||
panic('error decoding: $err')
|
||||
panic('error decoding: ${err}')
|
||||
}
|
||||
assert decoded2 == input
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user