You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

22 lines
304 B

fn test_basic_match() {
let x = 1
match x {
1 => assert(true)
2 => assert(false)
}
}
fn test_boolean_match() {
let x = true
match x {
true => assert(true)
false => assert(false)
}
}
fn main() {
test_basic_match()
test_boolean_match()
}