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

seq: use allow_hyphen_values instead of

allow_negative_numbers because clap removed support for "exotic" negative
numbers like -.1
This commit is contained in:
Daniel Hofstetter 2024-12-12 15:37:36 +01:00
parent 934cbb38f6
commit ee0426e3f3
2 changed files with 31 additions and 4 deletions

View file

@ -48,12 +48,12 @@ fn test_hex_rejects_sign_after_identifier() {
.args(&["-0x-123ABC"])
.fails()
.no_stdout()
.stderr_contains("unexpected argument '-0' found");
.usage_error("invalid floating point argument: '-0x-123ABC'");
new_ucmd!()
.args(&["-0x+123ABC"])
.fails()
.no_stdout()
.stderr_contains("unexpected argument '-0' found");
.usage_error("invalid floating point argument: '-0x+123ABC'");
}
#[test]