minor match_test.v fixes

pull/1198/head
Alexander Medvednikov 2019-07-17 02:44:41 +02:00
parent a9463a180d
commit 76d6e9fd1a
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
## V 0.1.16 ## V 0.1.16
*17 Jul 2019* *17 Jul 2019*
- High order functions - High order functions
- `match` expression

View File

@ -1,11 +1,11 @@
fn test_switch() { fn test_match() {
a := 3 a := 3
mut b := 0 mut b := 0
match a { match a {
2 => println('two') 2 => println('two')
3 => println('three') 3 => println('three')
b = 3 b = 3
4 => println('4') 4 => println('four')
} }
assert b == 3 assert b == 3
} }