mirror of
https://github.com/rust-lang/cargo
synced 2024-09-15 22:09:55 +00:00
19 lines
439 B
Rust
19 lines
439 B
Rust
use support::{project, execs};
|
|
use hamcrest::assert_that;
|
|
use cargo;
|
|
|
|
fn setup() {}
|
|
|
|
test!(simple {
|
|
let p = project("foo");
|
|
|
|
assert_that(p.cargo_process("version"),
|
|
execs().with_status(0).with_stdout(format!("{}\n",
|
|
cargo::version()).as_slice()));
|
|
|
|
assert_that(p.cargo_process("--version"),
|
|
execs().with_status(0).with_stdout(format!("{}\n",
|
|
cargo::version()).as_slice()));
|
|
|
|
});
|