We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aa39c2c + 183a99d commit 0eab0faCopy full SHA for 0eab0fa
tests/by-util/test_split.rs
@@ -1977,9 +1977,9 @@ fn test_split_separator_same_multiple() {
1977
#[test]
1978
fn test_long_lines() {
1979
let (at, mut ucmd) = at_and_ucmd!();
1980
- let line1 = format!("{:131070}\n", "");
1981
- let line2 = format!("{:1}\n", "");
1982
- let line3 = format!("{:131071}\n", "");
+ let line1 = [" ".repeat(131_070), String::from("\n")].concat();
+ let line2 = [" ", "\n"].concat();
+ let line3 = [" ".repeat(131_071), String::from("\n")].concat();
1983
let infile = [line1, line2, line3].concat();
1984
ucmd.args(&["-C", "131072"])
1985
.pipe_in(infile)
0 commit comments