]> git.proxmox.com Git - rustc.git/blobdiff - vendor/pretty_assertions/tests/assert_ne.rs
New upstream version 1.44.1+dfsg1
[rustc.git] / vendor / pretty_assertions / tests / assert_ne.rs
index 5b4fc9958091e550e068959d414fafe2353cb552..88ad3fac5bafac7cc55e64da24741c7568783ac7 100644 (file)
@@ -1,6 +1,5 @@
-#[macro_use]\r
-extern crate pretty_assertions;\r
-\r
+#[allow(unused_imports)]\r
+use pretty_assertions::{assert_eq, assert_ne};\r
 #[test]\r
 #[should_panic(expected = r#"assertion failed: `(left != right)`\r
 \r
@@ -17,7 +16,6 @@ Some(
 \r
 "#)]\r
 fn assert_ne() {\r
-\r
     #[derive(Debug, PartialEq)]\r
     struct Foo {\r
         lorem: &'static str,\r
@@ -35,7 +33,8 @@ fn assert_ne() {
 }\r
 \r
 #[test]\r
-#[should_panic(expected = r#"assertion failed: `(left != right)`: custom panic message\r
+#[should_panic(\r
+    expected = r#"assertion failed: `(left != right)`: custom panic message\r
 \r
 \e[1mBoth sides\e[0m:\r
 Some(\r
@@ -48,9 +47,9 @@ Some(
     }\r
 )\r
 \r
-"#)]\r
+"#\r
+)]\r
 fn assert_ne_custom() {\r
-\r
     #[derive(Debug, PartialEq)]\r
     struct Foo {\r
         lorem: &'static str,\r
@@ -124,7 +123,6 @@ Some(
 \r
 "#)]\r
 fn assert_ne_trailing_comma() {\r
-\r
     #[derive(Debug, PartialEq)]\r
     struct Foo {\r
         lorem: &'static str,\r
@@ -142,7 +140,8 @@ fn assert_ne_trailing_comma() {
 }\r
 \r
 #[test]\r
-#[should_panic(expected = r#"assertion failed: `(left != right)`: custom panic message\r
+#[should_panic(\r
+    expected = r#"assertion failed: `(left != right)`: custom panic message\r
 \r
 \e[1mBoth sides\e[0m:\r
 Some(\r
@@ -155,9 +154,9 @@ Some(
     }\r
 )\r
 \r
-"#)]\r
+"#\r
+)]\r
 fn assert_ne_custom_trailing_comma() {\r
-\r
     #[derive(Debug, PartialEq)]\r
     struct Foo {\r
         lorem: &'static str,\r