From 5e5209b4ee2c0f4506e2f30d75bd4e9c4a180f0c Mon Sep 17 00:00:00 2001 From: Jeffrey Finkelstein Date: Sun, 12 Jan 2025 15:14:43 -0500 Subject: [PATCH] fixup! split: fix bug with large arguments to -C --- tests/by-util/test_split.rs | 4 ++-- tests/fixtures/split/long262145.txt | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 tests/fixtures/split/long262145.txt diff --git a/tests/by-util/test_split.rs b/tests/by-util/test_split.rs index 41b491e6bf0..b0156aa23c6 100644 --- a/tests/by-util/test_split.rs +++ b/tests/by-util/test_split.rs @@ -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()); } diff --git a/tests/fixtures/split/long262145.txt b/tests/fixtures/split/long262145.txt new file mode 100644 index 00000000000..9933deb58b4 --- /dev/null +++ b/tests/fixtures/split/long262145.txt @@ -0,0 +1,3 @@ + +x +