mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
10 lines
150 B
V
10 lines
150 B
V
fn test_match_aliases() {
|
|
a := byte(97)
|
|
ret := match a {
|
|
`0`...`9`, `a`...`f` { 'OK' }
|
|
else { 'NOT OK' }
|
|
}
|
|
println(ret)
|
|
assert ret == 'OK'
|
|
}
|