Skip to content

Commit

Permalink
Add tests for assert with format and named parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
murarth committed Mar 6, 2018
1 parent 643b531 commit 53c5189
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,7 @@ mod test {
assert_matches!(a, Foo::A(n) if n == 0, "o noes");
assert_matches!(a, Foo::A(_), "o noes {:?}", a);
assert_matches!(a, Foo::A(n) if n == 0, "o noes {:?}", a);
assert_matches!(a, Foo::A(_), "o noes value={value:?}", value = a);
assert_matches!(a, Foo::A(n) if n == 0, "o noes value={value:?}", value = a);
}
}

0 comments on commit 53c5189

Please sign in to comment.