From 11528095209f2a08f71abdf6795d71fc93a961ff Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sun, 14 Apr 2024 22:17:21 +0200 Subject: [PATCH 1/2] seq: add the unit test even if they are failing for now --- tests/by-util/test_seq.rs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/tests/by-util/test_seq.rs b/tests/by-util/test_seq.rs index b29d898a87a..520dad95ae8 100644 --- a/tests/by-util/test_seq.rs +++ b/tests/by-util/test_seq.rs @@ -758,6 +758,33 @@ fn test_format_option() { .stdout_only("0.00\n0.10\n0.20\n0.30\n0.40\n0.50\n"); } +#[test] +#[ignore = "Need issue #6233 to be fixed"] +fn test_auto_precision() { + new_ucmd!() + .args(&["1", "0x1p-1", "2"]) + .succeeds() + .stdout_only("1\n1.5\n2\n"); +} + +#[test] +#[ignore = "Need issue #6234 to be fixed"] +fn test_undefined() { + new_ucmd!() + .args(&["1e-9223372036854775808"]) + .succeeds() + .stdout_only(""); +} + +#[test] +#[ignore = "Need issue #6235 to be fixed"] +fn test_invalid_float_point_fail_properly() { + new_ucmd!() + .args(&["66000e000000000000000000000000000000000000000000000000000009223372036854775807"]) + .fails() + .stdout_only(""); // might need to be updated +} + #[test] fn test_invalid_zero_increment_value() { new_ucmd!() From ce13dc7e848b79968a9f27f83738c90eb4834c1e Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Mon, 15 Apr 2024 17:52:06 +0200 Subject: [PATCH 2/2] improve test Co-authored-by: Daniel Hofstetter --- tests/by-util/test_seq.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/by-util/test_seq.rs b/tests/by-util/test_seq.rs index 520dad95ae8..a8bd1fb8359 100644 --- a/tests/by-util/test_seq.rs +++ b/tests/by-util/test_seq.rs @@ -773,7 +773,7 @@ fn test_undefined() { new_ucmd!() .args(&["1e-9223372036854775808"]) .succeeds() - .stdout_only(""); + .no_output(); } #[test]