1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

Merge pull request #7301 from jfinkels/split-test-format-width

split: avoid extremely long format width in test
This commit is contained in:
Daniel Hofstetter 2025-02-15 17:09:41 +01:00 committed by GitHub
commit 0eab0fa83e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1977,9 +1977,9 @@ fn test_split_separator_same_multiple() {
#[test] #[test]
fn test_long_lines() { fn test_long_lines() {
let (at, mut ucmd) = at_and_ucmd!(); let (at, mut ucmd) = at_and_ucmd!();
let line1 = format!("{:131070}\n", ""); let line1 = [" ".repeat(131_070), String::from("\n")].concat();
let line2 = format!("{:1}\n", ""); let line2 = [" ", "\n"].concat();
let line3 = format!("{:131071}\n", ""); let line3 = [" ".repeat(131_071), String::from("\n")].concat();
let infile = [line1, line2, line3].concat(); let infile = [line1, line2, line3].concat();
ucmd.args(&["-C", "131072"]) ucmd.args(&["-C", "131072"])
.pipe_in(infile) .pipe_in(infile)