test(toml): Be consistent on expected output formatting

This commit is contained in:
Ed Page 2024-04-18 14:45:27 -05:00
parent d210644a1b
commit 265f93e913
1 changed files with 39 additions and 16 deletions

View File

@ -835,8 +835,11 @@ fn dev_dependencies2_conflict() {
.build();
p.cargo("check")
.with_stderr_contains(
"[WARNING] conflicting between `dev-dependencies` and `dev_dependencies` in the `foo` package.\n
`dev_dependencies` is ignored and not recommended for use in the future"
"\
[WARNING] conflicting between `dev-dependencies` and `dev_dependencies` in the `foo` package.
`dev_dependencies` is ignored and not recommended for use in the future
",
)
.run();
}
@ -872,8 +875,11 @@ fn build_dependencies2_conflict() {
.build();
p.cargo("check")
.with_stderr_contains(
"[WARNING] conflicting between `build-dependencies` and `build_dependencies` in the `foo` package.\n
`build_dependencies` is ignored and not recommended for use in the future"
"\
[WARNING] conflicting between `build-dependencies` and `build_dependencies` in the `foo` package.
`build_dependencies` is ignored and not recommended for use in the future
",
)
.run();
}
@ -900,8 +906,11 @@ fn lib_crate_type2_conflict() {
.build();
p.cargo("check")
.with_stderr_contains(
"[WARNING] conflicting between `crate-type` and `crate_type` in the `foo` library target.\n
`crate_type` is ignored and not recommended for use in the future",
"\
[WARNING] conflicting between `crate-type` and `crate_type` in the `foo` library target.
`crate_type` is ignored and not recommended for use in the future
",
)
.run();
}
@ -947,9 +956,11 @@ fn examples_crate_type2_conflict() {
p.cargo("check")
.with_stderr_contains(
"\
[WARNING] conflicting between `crate-type` and `crate_type` in the `ex` example target.\n
[WARNING] conflicting between `crate-type` and `crate_type` in the `ex` example target.
`crate_type` is ignored and not recommended for use in the future
[WARNING] conflicting between `crate-type` and `crate_type` in the `goodbye` example target.\n
[WARNING] conflicting between `crate-type` and `crate_type` in the `goodbye` example target.
`crate_type` is ignored and not recommended for use in the future",
)
.run();
@ -989,8 +1000,11 @@ fn cargo_platform_build_dependencies2_conflict() {
p.cargo("check")
.with_stderr_contains(
format!("[WARNING] conflicting between `build-dependencies` and `build_dependencies` in the `{}` platform target.\n
`build_dependencies` is ignored and not recommended for use in the future", host)
format!("\
[WARNING] conflicting between `build-dependencies` and `build_dependencies` in the `{host}` platform target.
`build_dependencies` is ignored and not recommended for use in the future
")
)
.run();
}
@ -1028,8 +1042,11 @@ fn cargo_platform_dev_dependencies2_conflict() {
p.cargo("check")
.with_stderr_contains(
format!("[WARNING] conflicting between `dev-dependencies` and `dev_dependencies` in the `{}` platform target.\n
`dev_dependencies` is ignored and not recommended for use in the future", host)
format!("\
[WARNING] conflicting between `dev-dependencies` and `dev_dependencies` in the `{host}` platform target.
`dev_dependencies` is ignored and not recommended for use in the future
")
)
.run();
}
@ -1070,8 +1087,11 @@ fn default_features2_conflict() {
p.cargo("check")
.with_stderr_contains(
"[WARNING] conflicting between `default-features` and `default_features` in the `a` dependency.\n
`default_features` is ignored and not recommended for use in the future"
"\
[WARNING] conflicting between `default-features` and `default_features` in the `a` dependency.
`default_features` is ignored and not recommended for use in the future
",
)
.run();
}
@ -1096,8 +1116,11 @@ fn proc_macro2_conflict() {
foo.cargo("check")
.with_stderr_contains(
"[WARNING] conflicting between `proc-macro` and `proc_macro` in the `foo` library target.\n
`proc_macro` is ignored and not recommended for use in the future",
"\
[WARNING] conflicting between `proc-macro` and `proc_macro` in the `foo` library target.
`proc_macro` is ignored and not recommended for use in the future
",
)
.run();
}