mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Merge pull request #2882 from jtracey/join-bigfields-compat
join: "support" field numbers larger than usize::MAX
This commit is contained in:
commit
7477761428
3 changed files with 51 additions and 0 deletions
|
@ -75,6 +75,27 @@ fn different_field() {
|
|||
.stdout_only_fixture("different_field.expected");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn out_of_bounds_fields() {
|
||||
new_ucmd!()
|
||||
.arg("fields_1.txt")
|
||||
.arg("fields_4.txt")
|
||||
.arg("-1")
|
||||
.arg("3")
|
||||
.arg("-2")
|
||||
.arg("5")
|
||||
.succeeds()
|
||||
.stdout_only_fixture("out_of_bounds_fields.expected");
|
||||
|
||||
new_ucmd!()
|
||||
.arg("fields_1.txt")
|
||||
.arg("fields_4.txt")
|
||||
.arg("-j")
|
||||
.arg("100000000000000000000") // > usize::MAX for 64 bits
|
||||
.succeeds()
|
||||
.stdout_only_fixture("out_of_bounds_fields.expected");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn unpaired_lines() {
|
||||
new_ucmd!()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue