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:
commit
1986c965cc
11 changed files with 408 additions and 54 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue