mirror of
https://github.com/vlang/v.git
synced 2025-09-14 23:12:33 +03:00
minor match_test.v fixes
This commit is contained in:
parent
a9463a180d
commit
76d6e9fd1a
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue