diff --git a/tests/by-util/test_seq.rs b/tests/by-util/test_seq.rs index 83bdb7a82..01ccfc11f 100644 --- a/tests/by-util/test_seq.rs +++ b/tests/by-util/test_seq.rs @@ -752,21 +752,23 @@ fn test_undefined() { #[test] fn test_invalid_float_point_fail_properly() { + // Note that we support arguments that are much bigger than what GNU coreutils supports. + // Tests below use exponents larger than we support (i64) new_ucmd!() - .args(&["66000e000000000000000000000000000000000000000000000000000009223372036854775807"]) + .args(&["66000e0000000000000000000000000000000000000000000000000000092233720368547758070"]) .fails() .no_stdout() - .usage_error("invalid floating point argument: '66000e000000000000000000000000000000000000000000000000000009223372036854775807'"); + .usage_error("invalid floating point argument: '66000e0000000000000000000000000000000000000000000000000000092233720368547758070'"); new_ucmd!() - .args(&["-1.1e9223372036854775807"]) + .args(&["-1.1e92233720368547758070"]) .fails() .no_stdout() - .usage_error("invalid floating point argument: '-1.1e9223372036854775807'"); + .usage_error("invalid floating point argument: '-1.1e92233720368547758070'"); new_ucmd!() - .args(&["-.1e9223372036854775807"]) + .args(&["-.1e92233720368547758070"]) .fails() .no_stdout() - .usage_error("invalid floating point argument: '-.1e9223372036854775807'"); + .usage_error("invalid floating point argument: '-.1e92233720368547758070'"); } #[test]