mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
tests/seq: test scientific notation with uppercase 'E'
This commit is contained in:
@@ -392,6 +392,7 @@ mod tests {
|
||||
fn test_parse_big_int() {
|
||||
assert_eq!(parse("0"), ExtendedBigDecimal::zero());
|
||||
assert_eq!(parse("0.1e1"), ExtendedBigDecimal::one());
|
||||
assert_eq!(parse("0.1E1"), ExtendedBigDecimal::one());
|
||||
assert_eq!(
|
||||
parse("1.0e1"),
|
||||
ExtendedBigDecimal::BigDecimal("10".parse::<BigDecimal>().unwrap())
|
||||
|
||||
@@ -333,6 +333,11 @@ fn test_width_scientific_notation() {
|
||||
.succeeds()
|
||||
.stdout_is("0999\n1000\n")
|
||||
.no_stderr();
|
||||
new_ucmd!()
|
||||
.args(&["-w", "999", "1E3"])
|
||||
.succeeds()
|
||||
.stdout_is("0999\n1000\n")
|
||||
.no_stderr();
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user