]> git.proxmox.com Git - cargo.git/commitdiff
stop mixing of newlines and `\n` in tests
authorakabinds <staticxxd@gmail.com>
Wed, 3 Aug 2022 00:43:16 +0000 (19:43 -0500)
committerakabinds <staticxxd@gmail.com>
Wed, 3 Aug 2022 00:43:16 +0000 (19:43 -0500)
tests/testsuite/cargo_command.rs

index 5219ae8241f8cbb058a74fd73c8b60910302d8c7..8db1c4c7ebdc70fe574625fd6eb113b9e84d2fa6 100644 (file)
@@ -262,7 +262,9 @@ fn find_closest_dont_correct_nonsense() {
         .cwd(&paths::root())
         .with_status(101)
         .with_stderr(
-            "[ERROR] no such subcommand: `there-is-no-way-that-there-is-a-command-close-to-this`\n
+            "\
+[ERROR] no such subcommand: `there-is-no-way-that-there-is-a-command-close-to-this`
+
 <tab>View all installed commands with `cargo --list`",
         )
         .run();
@@ -273,7 +275,9 @@ fn displays_subcommand_on_error() {
     cargo_process("invalid-command")
         .with_status(101)
         .with_stderr(
-            "[ERROR] no such subcommand: `invalid-command`\n
+            "\
+[ERROR] no such subcommand: `invalid-command`
+
 <tab>View all installed commands with `cargo --list`",
         )
         .run();