Skip to content

Commit

Permalink
test: assert JSON output in testsuite locate_project
Browse files Browse the repository at this point in the history
  • Loading branch information
henry40408 committed Jun 19, 2024
1 parent 0226ca4 commit 2fbba53
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/testsuite/locate_project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fn simple() {

p.cargo("locate-project")
.with_stdout_data(str![[r#"
{"root":"[..]"}
{"root":"[ROOT]/foo/Cargo.toml"}
"#]])
.run();
Expand All @@ -27,7 +27,7 @@ fn message_format() {

p.cargo("locate-project --message-format json")
.with_stdout_data(str![[r#"
{"root":"[..]"}
{"root":"[ROOT]/foo/Cargo.toml"}
"#]])
.run();
Expand Down Expand Up @@ -69,30 +69,30 @@ fn workspace() {

p.cargo("locate-project")
.with_stdout_data(str![[r#"
{"root":"[..]"}
{"root":"[ROOT]/foo/Cargo.toml"}
"#]])
.run();

p.cargo("locate-project")
.cwd("inner")
.with_stdout_data(str![[r#"
{"root":"[..]"}
{"root":"[ROOT]/foo/inner/Cargo.toml"}
"#]])
.run();

p.cargo("locate-project --workspace")
.with_stdout_data(str![[r#"
{"root":"[..]"}
{"root":"[ROOT]/foo/Cargo.toml"}
"#]])
.run();

p.cargo("locate-project --workspace")
.cwd("inner")
.with_stdout_data(str![[r#"
{"root":"[..]"}
{"root":"[ROOT]/foo/Cargo.toml"}
"#]])
.run();
Expand Down

0 comments on commit 2fbba53

Please sign in to comment.