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

Merge pull request #4750 from NikolaiSch/seq-panic-fix

fix: seq panic on no arguments #4749
This commit is contained in:
Daniel Hofstetter 2023-07-09 14:19:07 +02:00 committed by GitHub
commit f8a955266e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 31 additions and 27 deletions

View file

@ -7,6 +7,14 @@ fn test_invalid_arg() {
new_ucmd!().arg("--definitely-invalid").fails().code_is(1);
}
#[test]
fn test_no_args() {
new_ucmd!()
.fails()
.code_is(1)
.stderr_contains("missing operand");
}
#[test]
fn test_hex_rejects_sign_after_identifier() {
new_ucmd!()