Skip to content

Commit

Permalink
fixup! split: fix bug with large arguments to -C
Browse files Browse the repository at this point in the history
  • Loading branch information
jfinkels committed Jan 12, 2025
1 parent c6ac492 commit 5e5209b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/by-util/test_split.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1986,8 +1986,8 @@ fn test_long_lines() {
//
let (at, mut ucmd) = at_and_ucmd!();
ucmd.args(&["-C", "131072", "long262145.txt"]).succeeds();
assert_eq!(at.read("xaa").len(), 131071);
assert_eq!(at.read("xaa").len(), 131_071);
assert_eq!(at.read("xab").len(), 2);
assert_eq!(at.read("xac").len(), 131072);
assert_eq!(at.read("xac").len(), 131_072);
assert!(!at.plus("xad").exists());
}
3 changes: 3 additions & 0 deletions tests/fixtures/split/long262145.txt

Large diffs are not rendered by default.

0 comments on commit 5e5209b

Please sign in to comment.