mirror of
https://github.com/rust-lang/cargo
synced 2024-10-31 08:59:36 +00:00
5101372312
This makes it easier to evaluate the usability of PRs, like #11905
13 lines
341 B
Rust
13 lines
341 B
Rust
use cargo_test_support::curr_dir;
|
|
use cargo_test_support::prelude::*;
|
|
|
|
#[cargo_test]
|
|
fn case() {
|
|
snapbox::cmd::Command::cargo_ui()
|
|
.arg("tree")
|
|
.arg("--help")
|
|
.assert()
|
|
.success()
|
|
.stdout_matches_path(curr_dir!().join("stdout.log"))
|
|
.stderr_matches_path(curr_dir!().join("stderr.log"));
|
|
}
|