mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
checker: check match condition
This commit is contained in:
parent
9823d80e0c
commit
9aa1a65489
2 changed files with 10 additions and 9 deletions
|
@ -8,7 +8,7 @@ struct Employee {
|
|||
fn test_simple() {
|
||||
x := Employee{'Peter', 28}
|
||||
s := json.encode(x)
|
||||
assert s == '{"name":"Peter","age":28}'
|
||||
assert s == '{"name":"Peter","age":28}'
|
||||
y := json.decode(Employee, s) or {
|
||||
assert false
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue