mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
20 lines
454 B
Rust
20 lines
454 B
Rust
use cargo_test_support::file;
|
|
use cargo_test_support::paths;
|
|
use cargo_test_support::prelude::*;
|
|
use cargo_test_support::str;
|
|
|
|
#[cargo_test]
|
|
fn case() {
|
|
let cwd = paths::root();
|
|
|
|
snapbox::cmd::Command::cargo_ui()
|
|
.arg_line("init --lib --bin")
|
|
.current_dir(&cwd)
|
|
.assert()
|
|
.code(101)
|
|
.stdout_matches(str![""])
|
|
.stderr_matches(file!["stderr.log"]);
|
|
|
|
assert!(!cwd.join("Cargo.toml").is_file());
|
|
}
|