mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
14 lines
150 B
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' == '{}'
|
|
}
|