Skip to content

Commit

Permalink
seq: add the unit test even if they are failing for now
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvestre committed Apr 14, 2024
1 parent d56c7bb commit 570f3f4
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions tests/by-util/test_seq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!()

Check warning on line 764 in tests/by-util/test_seq.rs

View check run for this annotation

Codecov / codecov/patch

tests/by-util/test_seq.rs#L763-L764

Added lines #L763 - L764 were not covered by tests
.args(&["1", "0x1p-1", "2"])
.succeeds()
.stdout_only("0\n1.5\n2\n");
}

Check warning on line 768 in tests/by-util/test_seq.rs

View check run for this annotation

Codecov / codecov/patch

tests/by-util/test_seq.rs#L767-L768

Added lines #L767 - L768 were not covered by tests

#[test]
#[ignore = "Need issue #6234 to be fixed"]
fn test_undefined() {
new_ucmd!()

Check warning on line 773 in tests/by-util/test_seq.rs

View check run for this annotation

Codecov / codecov/patch

tests/by-util/test_seq.rs#L772-L773

Added lines #L772 - L773 were not covered by tests
.args(&["1e-9223372036854775808"])
.succeeds()
.stdout_only("");
}

Check warning on line 777 in tests/by-util/test_seq.rs

View check run for this annotation

Codecov / codecov/patch

tests/by-util/test_seq.rs#L776-L777

Added lines #L776 - L777 were not covered by tests

#[test]
#[ignore = "Need issue #6235 to be fixed"]
fn test_invalid_float_point_fail_properly() {
new_ucmd!()

Check warning on line 782 in tests/by-util/test_seq.rs

View check run for this annotation

Codecov / codecov/patch

tests/by-util/test_seq.rs#L781-L782

Added lines #L781 - L782 were not covered by tests
.args(&["66000e000000000000000000000000000000000000000000000000000009223372036854775807"])
.succeeds()
.stdout_only(""); // might need to be updated
}

Check warning on line 786 in tests/by-util/test_seq.rs

View check run for this annotation

Codecov / codecov/patch

tests/by-util/test_seq.rs#L785-L786

Added lines #L785 - L786 were not covered by tests

#[test]
fn test_invalid_zero_increment_value() {
new_ucmd!()
Expand Down

0 comments on commit 570f3f4

Please sign in to comment.