v/vlib/v/tests/match_branch_with_array_exp...

9 lines
145 B
V

fn test_match_branch_with_array_expression() {
ret := match true {
[''].contains('') { 22 }
else { 0 }
}
println(ret)
assert ret == 22
}