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

expr: fail fast if there are no operands

This commit is contained in:
Daniel Hofstetter 2023-11-23 14:35:02 +01:00
parent af021e0d4f
commit 2e77d99dd4
2 changed files with 6 additions and 2 deletions

View file

@ -11,7 +11,7 @@ fn test_no_arguments() {
new_ucmd!()
.fails()
.code_is(2)
.stderr_only("expr: missing operand\n");
.usage_error("missing operand");
}
#[test]