Open jfinkels opened 2 years ago
The panic occurs where parsing the big number. It seems like this is a bug in the bigdecimal-rs
crate. I filed an issue there. Do you think it would make sense to extend the tests in https://github.com/uutils/coreutils/blob/main/src/uu/seq/src/numberparse.rs that check that test that very small numbers/exponents (those for which the big decimal datastructure is required) are parsed from strings correctly? Or is this the responsibility of the bigdecimal-rs
crate, meaning such tests should be added there?
Once there is a fix for this bug, I would place a test case in tests/by-util/test_seq.rs
that just does something like
#[test]
fn test_parsing_infinitesimal_float_scientific_notation() {
new_ucmd!().arg("1e-9223372036854775808").succeeds().no_output();
}
Environment: Ubuntu 20.04, x86_64 processor, coreutils v8.30.
GNU seq:
uutils seq
This test case appears in the GNU test suite file
tests/misc/seq-precision.sh
.