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

Merge pull request #7782 from drinkcat/seq-perf-more-use-cat

Move seq's `fast_inc` to `uucore`, use it in `cat`
This commit is contained in:
Sylvestre Ledru 2025-04-22 15:54:00 +02:00 committed by GitHub
commit 1986c965cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 408 additions and 54 deletions

View file

@ -216,6 +216,10 @@ fn test_separator_and_terminator() {
.args(&["-s", ",", "2", "6"])
.succeeds()
.stdout_is("2,3,4,5,6\n");
new_ucmd!()
.args(&["-s", "", "2", "6"])
.succeeds()
.stdout_is("23456\n");
new_ucmd!()
.args(&["-s", "\n", "2", "6"])
.succeeds()
@ -286,6 +290,10 @@ fn test_separator_and_terminator_floats() {
.args(&["-s", ",", "-t", "!", "2.0", "6"])
.succeeds()
.stdout_is("2.0,3.0,4.0,5.0,6.0!");
new_ucmd!()
.args(&["-s", "", "-t", "!", "2.0", "6"])
.succeeds()
.stdout_is("2.03.04.05.06.0!");
}
#[test]