mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 19:17:43 +00:00
fmt: add basic tests for split-only, prefix, and skip-prefix args
This commit is contained in:
parent
e76f92c212
commit
a13949b4ba
5 changed files with 127 additions and 0 deletions
19
tests/fixtures/fmt/prefixed-one-word-per-line.txt
vendored
Normal file
19
tests/fixtures/fmt/prefixed-one-word-per-line.txt
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
- this
|
||||
- is
|
||||
- a
|
||||
- file
|
||||
- with
|
||||
- one
|
||||
- word
|
||||
- per
|
||||
- line
|
||||
|
||||
=1this
|
||||
=1is
|
||||
=1a
|
||||
=2file
|
||||
=2with
|
||||
=2one
|
||||
=3word
|
||||
=3per
|
||||
=3line
|
11
tests/fixtures/fmt/prefixed-one-word-per-line_p-.txt
vendored
Normal file
11
tests/fixtures/fmt/prefixed-one-word-per-line_p-.txt
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
- this is a file with one word per line
|
||||
|
||||
=1this
|
||||
=1is
|
||||
=1a
|
||||
=2file
|
||||
=2with
|
||||
=2one
|
||||
=3word
|
||||
=3per
|
||||
=3line
|
11
tests/fixtures/fmt/prefixed-one-word-per-line_p=.txt
vendored
Normal file
11
tests/fixtures/fmt/prefixed-one-word-per-line_p=.txt
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
- this
|
||||
- is
|
||||
- a
|
||||
- file
|
||||
- with
|
||||
- one
|
||||
- word
|
||||
- per
|
||||
- line
|
||||
|
||||
=1this 1is 1a 2file 2with 2one 3word 3per 3line
|
15
tests/fixtures/fmt/prefixed-one-word-per-line_p=_P=2.txt
vendored
Normal file
15
tests/fixtures/fmt/prefixed-one-word-per-line_p=_P=2.txt
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
- this
|
||||
- is
|
||||
- a
|
||||
- file
|
||||
- with
|
||||
- one
|
||||
- word
|
||||
- per
|
||||
- line
|
||||
|
||||
=1this 1is 1a
|
||||
=2file
|
||||
=2with
|
||||
=2one
|
||||
=3word 3per 3line
|
Loading…
Add table
Add a link
Reference in a new issue