Skip to content

Commit

Permalink
test: apply suggestion to testsuite version from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
henry40408 committed Jun 19, 2024
1 parent ca116ce commit 842579e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/testsuite/version.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//! Tests for displaying the cargo version.

use cargo_test_support::{cargo_process, project, str};
use snapbox::IntoData as _;
use cargo_test_support::{cargo_process, project};

#[cargo_test]
fn simple() {
Expand Down Expand Up @@ -52,18 +51,19 @@ fn version_works_with_bad_target_dir() {
fn verbose() {
// This is mainly to check that it doesn't explode.
cargo_process("-vV")
.with_stdout_data(
str![[r#"
cargo [..] ([..] [..])
.with_stdout_data(format!(
"\
cargo {}
release: [..]
commit-hash: [..]
commit-date: [..]
host: [HOST_TARGET]
libgit2: [..] (sys:[..] [..])
libcurl: [..] (sys:[..] [..])
...
"#]]
.unordered(),
)
os: [..]
",
cargo::version()
))
.run();
}

0 comments on commit 842579e

Please sign in to comment.