1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Files
v/vlib/v/tests/option_empty_map_test.v

14 lines
150 B
V

fn opt() ?map[string]string {
return {}
}
fn test_option_empty_map() {
x := opt() or {
assert false
return
}
dump(x)
assert '$x' == '{}'
}