mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Merge pull request #4093 from cakebaker/numfmt_test_all_fields
numfmt: add test for "--field -" (all fields)
This commit is contained in:
commit
b942054568
1 changed files with 8 additions and 0 deletions
|
@ -399,6 +399,14 @@ fn test_format_selected_field_range() {
|
||||||
.stdout_only("1K 2000 3000 4000 5000 6K\n");
|
.stdout_only("1K 2000 3000 4000 5000 6K\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_format_all_fields() {
|
||||||
|
new_ucmd!()
|
||||||
|
.args(&["--from=auto", "--field", "-", "1K 2K 3K 4K 5K 6K"])
|
||||||
|
.succeeds()
|
||||||
|
.stdout_only("1000 2000 3000 4000 5000 6000\n");
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_should_succeed_if_range_out_of_bounds() {
|
fn test_should_succeed_if_range_out_of_bounds() {
|
||||||
new_ucmd!()
|
new_ucmd!()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue