v/vlib/v/tests/map_value_init_test.v

10 lines
132 B
V

struct Test {
s string
}
fn test_map_value_init() {
m := map[string]Test{}
empty := m['not-here']
assert !isnil(empty.s.str)
}