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

test: allow parsing of bigger numbers

Fixes: tests/misc/test.pl
This commit is contained in:
Sylvestre Ledru 2022-10-02 19:56:54 -10:00
parent f0b8b33dc1
commit 33de6c89db
2 changed files with 50 additions and 2 deletions

View file

@ -929,3 +929,26 @@ fn test_file_N() {
at.touch("regular_file");
scene.ucmd().args(&["-N", "regular_file"]).succeeds();
}
#[test]
fn test_long_integer() {
let scene = TestScenario::new(util_name!());
scene
.ucmd()
.args(&["18446744073709551616", "-eq", "0"])
.fails();
scene
.ucmd()
.args(&["-9223372036854775809", "-ge", "18446744073709551616"])
.fails();
scene
.ucmd()
.args(&[
"'('",
"-9223372036854775809",
"-ge",
"18446744073709551616",
"')'",
])
.fails();
}