mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-27 00:00:03 +03:00
Add not passing integration test (#154)
Add not passing integration test
This commit is contained in:
commit
5a9f8860ca
4
tests/fixture/failure/testNotPassed.rs
Normal file
4
tests/fixture/failure/testNotPassed.rs
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#[test]
|
||||||
|
fn not_passing() {
|
||||||
|
assert!(false);
|
||||||
|
}
|
|
@ -76,6 +76,16 @@ fn run_single_test_failure() {
|
||||||
.code(1);
|
.code(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn run_single_test_not_passed() {
|
||||||
|
Command::cargo_bin("rustlings")
|
||||||
|
.unwrap()
|
||||||
|
.args(&["r", "testNotPassed.rs"])
|
||||||
|
.current_dir("tests/fixture/failure/")
|
||||||
|
.assert()
|
||||||
|
.code(1);
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn run_single_test_no_filename() {
|
fn run_single_test_no_filename() {
|
||||||
Command::cargo_bin("rustlings")
|
Command::cargo_bin("rustlings")
|
||||||
|
|
Loading…
Reference in a new issue