mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
minor match_test.v fixes
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
fn test_switch() {
|
||||
fn test_match() {
|
||||
a := 3
|
||||
mut b := 0
|
||||
match a {
|
||||
2 => println('two')
|
||||
3 => println('three')
|
||||
b = 3
|
||||
4 => println('4')
|
||||
4 => println('four')
|
||||
}
|
||||
assert b == 3
|
||||
}
|
||||
|
Reference in New Issue
Block a user