mirror of https://github.com/status-im/NimYAML.git
further `isNil` checks in `tserialization` fixed
This commit is contained in:
parent
4821ef95fb
commit
fb13dc1627
|
@ -505,9 +505,9 @@ suite "Serialization":
|
|||
let input = "{b: b, d: d}"
|
||||
var result: NonVariantWithTransient
|
||||
load(input, result)
|
||||
assert isNil(result.a)
|
||||
assert result.a.len == 0
|
||||
assert result.b == "b"
|
||||
assert isNil(result.c)
|
||||
assert result.c.len == 0
|
||||
assert result.d == "d"
|
||||
|
||||
test "Load non-variant object with transient fields - unknown field":
|
||||
|
|
Loading…
Reference in New Issue