mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
tests: replace run() with succeeds() or fails()
This commit is contained in:
parent
3844a74c38
commit
df4dfea852
39 changed files with 434 additions and 498 deletions
|
@ -313,7 +313,7 @@ fn run(input_string: &[u8], output_string: &[u8]) {
|
|||
new_ucmd!()
|
||||
.timeout(Duration::from_secs(240))
|
||||
.pipe_in(input_string)
|
||||
.run()
|
||||
.succeeds()
|
||||
.stdout_is(String::from_utf8(output_string.to_owned()).unwrap());
|
||||
}
|
||||
|
||||
|
@ -342,7 +342,7 @@ fn test_primes_with_exponents() {
|
|||
.timeout(Duration::from_secs(240))
|
||||
.arg("--exponents")
|
||||
.pipe_in(input_string)
|
||||
.run()
|
||||
.succeeds()
|
||||
.stdout_is(String::from_utf8(output_string.as_bytes().to_owned()).unwrap());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue