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' == '{}'
}