Skip to content

Commit

Permalink
Collapse match
Browse files Browse the repository at this point in the history
  • Loading branch information
saulshanabrook committed Oct 15, 2024
1 parent 881bcb4 commit cbe174a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,12 +476,9 @@ fn test_set_cost() {
Expr::Call(_, head, args) => {
assert_eq!(head.to_string(), "Foo");
match args.as_slice() {
[expr] => match expr {
Expr::Lit(_, Literal::String(s)) => {
assert_eq!(s.to_string(), "y");
}
_ => panic!(),
},
[Expr::Lit(_, Literal::String(s))] => {
assert_eq!(s.to_string(), "y");
}
_ => panic!(),
}
}
Expand Down

0 comments on commit cbe174a

Please sign in to comment.