mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
rustfmt some tests
This commit is contained in:
parent
2158b2c5b4
commit
2c09556964
2 changed files with 2 additions and 10 deletions
|
@ -45,4 +45,3 @@ fn test_seq_wrong_arg() {
|
|||
fn test_zero_step() {
|
||||
new_ucmd!().args(&["10", "0", "32"]).fails();
|
||||
}
|
||||
|
||||
|
|
|
@ -5,14 +5,7 @@ use crate::common::util::*;
|
|||
// utility that requires executing another program (kill, for instance)
|
||||
#[test]
|
||||
fn test_subcommand_retcode() {
|
||||
new_ucmd!()
|
||||
.arg("1")
|
||||
.arg("true")
|
||||
.succeeds();
|
||||
new_ucmd!().arg("1").arg("true").succeeds();
|
||||
|
||||
new_ucmd!()
|
||||
.arg("1")
|
||||
.arg("false")
|
||||
.run()
|
||||
.status_code(1);
|
||||
new_ucmd!().arg("1").arg("false").run().status_code(1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue