mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-09 04:09:20 +00:00
Adapt tests
This commit is contained in:
parent
50f36066e6
commit
6d83fd757b
@ -97,7 +97,8 @@ fn run_single_test_no_filename() {
|
||||
.arg("run")
|
||||
.current_dir("tests/fixture/")
|
||||
.assert()
|
||||
.code(1);
|
||||
.code(1)
|
||||
.stderr(predicates::str::contains("Error: expected `NAME`"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
@ -126,9 +127,7 @@ fn reset_no_exercise() {
|
||||
.arg("reset")
|
||||
.assert()
|
||||
.code(1)
|
||||
.stderr(predicates::str::contains(
|
||||
"positional arguments not provided",
|
||||
));
|
||||
.stderr(predicates::str::contains("Error: expected `NAME`"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user