2020-11-22 02:08:04 -06:00
|
|
|
#[test]
|
|
|
|
fn assert_eq_trailing_comma() {
|
|
|
|
assert_eq!(1, 1,);
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn assert_escape() {
|
|
|
|
assert!(r#"☃\backslash"#.contains("\\"));
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn assert_ne_trailing_comma() {
|
|
|
|
assert_ne!(1, 2,);
|
|
|
|
}
|
2021-05-13 16:44:58 -05:00
|
|
|
|
|
|
|
#[rustfmt::skip]
|
|
|
|
#[test]
|
|
|
|
fn matches_leading_pipe() {
|
|
|
|
matches!(1, | 1 | 2 | 3);
|
|
|
|
}
|