tests: fix v -W vlib/toml/tests/encode_and_decode_test.v

This commit is contained in:
Delyan Angelov 2025-06-22 13:30:43 +03:00
parent 91a3844ad5
commit 74080e8fd5
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -209,7 +209,7 @@ struct Example6 {
} }
fn test_encode_for_exotic_types() { fn test_encode_for_exotic_types() {
assert toml.encode(Example6{ ptr: &voidptr(0), r: `🚀` }) == 'ptr = "0x0"\nr = "🚀"' assert toml.encode(Example6{ ptr: unsafe { &voidptr(nil) }, r: `🚀` }) == 'ptr = "0x0"\nr = "🚀"'
} }
fn test_array_encode_decode() { fn test_array_encode_decode() {