blob: c9232320a1724bbc19db9dbff1f1745edc43c4b8 [file] [log] [blame]
use cargo_test_support::paths;
use cargo_test_support::prelude::*;
use cargo_test_support::curr_dir;
#[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_path(curr_dir!().join("stdout.log"))
.stderr_matches_path(curr_dir!().join("stderr.log"));
assert!(!cwd.join("Cargo.toml").is_file());
}