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:
parent
a9463a180d
commit
76d6e9fd1a
@ -1,7 +1,7 @@
|
||||
## V 0.1.16
|
||||
*17 Jul 2019*
|
||||
- High order functions
|
||||
|
||||
- `match` expression
|
||||
|
||||
|
||||
|
||||
|
@ -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…
Reference in New Issue
Block a user