mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
seq: Trim whitespaces, then try to remove +
Otherwise, `seq` crashes with ` 0xee.` as input. Also update one of the tests to catch that.
This commit is contained in:
parent
bec2cb65b2
commit
e0a6482759
2 changed files with 4 additions and 1 deletions
|
@ -869,6 +869,8 @@ fn test_parse_valid_hexadecimal_float_two_args() {
|
|||
(["0xA.A9p-1", "6"], "5.33008\n"),
|
||||
(["0xa.a9p-1", "6"], "5.33008\n"),
|
||||
(["0xffffffffffp-30", "1024"], "1024\n"), // spell-checker:disable-line
|
||||
([" 0XA.A9P-1", "6"], "5.33008\n"),
|
||||
([" 0xee.", " 0xef."], "238\n239\n"),
|
||||
];
|
||||
|
||||
for (input_arguments, expected_output) in &test_cases {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue