1
0
Fork 0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-03-01 21:10:09 +01:00

Adapt tests

This commit is contained in:
mo8it 2023-08-26 00:00:56 +02:00 committed by liv
parent 5a93f2a4f1
commit 362318a6e0

View File

@ -97,7 +97,10 @@ fn run_single_test_no_filename() {
.arg("run")
.current_dir("tests/fixture/")
.assert()
.code(1);
.code(2)
.stderr(predicates::str::contains(
"required arguments were not provided",
));
}
#[test]
@ -125,9 +128,9 @@ fn reset_no_exercise() {
.unwrap()
.arg("reset")
.assert()
.code(1)
.code(2)
.stderr(predicates::str::contains(
"positional arguments not provided",
"required arguments were not provided",
));
}