Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Sep 15, 2024
1 parent 36757fb commit 34c4a4b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions vlib/json/json_decode_anon_struct_test.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import json

fn test_main() {
json_text := '{ "a": "b" }'
b := json.decode(struct {
a string
}, json_text)!.a
assert dump(b) == 'b'
}

0 comments on commit 34c4a4b

Please sign in to comment.