Add a bathroom stall to weird expressions test
This commit is contained in:
parent
05c07386b4
commit
dff97d5329
1 changed files with 7 additions and 0 deletions
|
@ -164,6 +164,12 @@ fn monkey_barrel() {
|
||||||
assert_eq!(val, ());
|
assert_eq!(val, ());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn bathroom_stall() {
|
||||||
|
let mut i = 1;
|
||||||
|
matches!(2, _|_|_|_|_|_ if (i+=1) != (i+=1));
|
||||||
|
assert_eq!(i, 13);
|
||||||
|
}
|
||||||
|
|
||||||
pub fn main() {
|
pub fn main() {
|
||||||
strange();
|
strange();
|
||||||
funny();
|
funny();
|
||||||
|
@ -183,4 +189,5 @@ pub fn main() {
|
||||||
i_yield();
|
i_yield();
|
||||||
match_nested_if();
|
match_nested_if();
|
||||||
monkey_barrel();
|
monkey_barrel();
|
||||||
|
bathroom_stall();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue