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

Simplify test cases

This commit is contained in:
Eli Youngs 2022-02-06 14:52:20 -08:00 committed by Sylvestre Ledru
parent 2afa9cd1a0
commit e23219289a

View file

@ -487,19 +487,11 @@ fn sub_general_truncate_to_integer() {
}
#[test]
fn sub_general_prefix_with_spaces() {
fn sub_general_scientific_notation() {
new_ucmd!()
.args(&["%5g", "1.1"])
.args(&["%g", "1000010"])
.succeeds()
.stdout_only(" 1.1");
}
#[test]
fn sub_general_large_integer() {
new_ucmd!()
.args(&["%g", "1000000"])
.succeeds()
.stdout_only("1e+06");
.stdout_only("1.00001e+06");
}
#[test]
@ -510,14 +502,6 @@ fn sub_general_round_scientific_notation() {
.stdout_only("1.23457e+08");
}
#[test]
fn sub_general_scientific_leading_zeroes() {
new_ucmd!()
.args(&["%g", "1000010"])
.succeeds()
.stdout_only("1.00001e+06");
}
#[test]
fn sub_general_round_float() {
new_ucmd!()