From 698f8c2f01ea549d77d7dc3338a12e04c11057b9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:02:58 +0200 Subject: Adding upstream version 1.64.0+dfsg1. Signed-off-by: Daniel Baumann --- library/core/tests/macros.rs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 library/core/tests/macros.rs (limited to 'library/core/tests/macros.rs') diff --git a/library/core/tests/macros.rs b/library/core/tests/macros.rs new file mode 100644 index 000000000..ff3632e35 --- /dev/null +++ b/library/core/tests/macros.rs @@ -0,0 +1,20 @@ +#[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,); +} + +#[rustfmt::skip] +#[test] +fn matches_leading_pipe() { + matches!(1, | 1 | 2 | 3); +} -- cgit v1.2.3