v2 / vlib / v / tests / loops / for_cond_test.v
10 lines · 9 sloc · 156 bytes · 6488041a749df9762348d019c4223908c476f2e2
Raw
1type TokenValue = rune | u64
2
3fn test_for_cond() {
4 val := `+`
5 for (val in [TokenValue(`+`), TokenValue(`-`)]) {
6 println('ok')
7 break
8 }
9 assert true
10}
11