1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

rustfmt some tests

This commit is contained in:
Sylvestre Ledru 2021-03-13 23:30:32 +01:00
parent 2158b2c5b4
commit 2c09556964
2 changed files with 2 additions and 10 deletions

View file

@ -45,4 +45,3 @@ fn test_seq_wrong_arg() {
fn test_zero_step() { fn test_zero_step() {
new_ucmd!().args(&["10", "0", "32"]).fails(); new_ucmd!().args(&["10", "0", "32"]).fails();
} }

View file

@ -5,14 +5,7 @@ use crate::common::util::*;
// utility that requires executing another program (kill, for instance) // utility that requires executing another program (kill, for instance)
#[test] #[test]
fn test_subcommand_retcode() { fn test_subcommand_retcode() {
new_ucmd!() new_ucmd!().arg("1").arg("true").succeeds();
.arg("1")
.arg("true")
.succeeds();
new_ucmd!() new_ucmd!().arg("1").arg("false").run().status_code(1);
.arg("1")
.arg("false")
.run()
.status_code(1);
} }