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

rewrite tests for cargo compat, decoupled directory, output handling

This commit is contained in:
Nathan Ross 2015-11-16 00:25:01 -05:00
parent b20b2cca19
commit a21c54e2cd
165 changed files with 4315 additions and 3538 deletions

View file

@ -0,0 +1,2 @@
.xx "" """quotes"", for" "roff" ""
.xx "" "{brackets} for" "tex" ""

View file

@ -0,0 +1,24 @@
.xx "" "" """quotes"", for roff" "" "input:3"
.xx "" "and some other like" "%a, b#, c$c" "" "input:5"
.xx "" "maybe" "also~or^" "" "input:6"
.xx "" "" "and some other like %a, b#, c$c" "" "input:5"
.xx "" "oh," "and back\slash" "" "input:7"
.xx "" "and some other like %a," "b#, c$c" "" "input:5"
.xx "" "oh, and" "back\slash" "" "input:7"
.xx "" "and some other like %a, b#," "c$c" "" "input:5"
.xx "" "let's check special" "characters:" "" "input:2"
.xx "" "let's" "check special characters:" "" "input:2"
.xx "" """quotes""," "for roff" "" "input:3"
.xx "" "{brackets}" "for tex" "" "input:4"
.xx "" "" "hello world!" "" "input:1"
.xx "" "" "let's check special characters:" "" "input:2"
.xx "" "and some other" "like %a, b#, c$c" "" "input:5"
.xx "" "" "maybe also~or^" "" "input:6"
.xx "" "" "oh, and back\slash" "" "input:7"
.xx "" "and some" "other like %a, b#, c$c" "" "input:5"
.xx "" """quotes"", for" "roff" "" "input:3"
.xx "" "and" "some other like %a, b#, c$c" "" "input:5"
.xx "" "let's check" "special characters:" "" "input:2"
.xx "" "{brackets} for" "tex" "" "input:4"
.xx "" "hello" "world!" "" "input:1"
.xx "" "" "{brackets} for tex" "" "input:4"

View file

@ -0,0 +1,17 @@
.xx "" "some other like" "%a, b#, c$c" "" "and"
.xx "" "" "also~or^" "" "maybe"
.xx "" "" "and back\slash" "" "oh,"
.xx "" "some other like %a," "b#, c$c" "" "and"
.xx "" "and" "back\slash" "" "oh,"
.xx "" "some other like %a, b#," "c$c" "" "and"
.xx "" "check special" "characters:" "" "let's"
.xx "" "" "check special characters:" "" "let's"
.xx "" "" "for roff" "" """quotes"","
.xx "" "" "for tex" "" "{brackets}"
.xx "" "some other" "like %a, b#, c$c" "" "and"
.xx "" "some" "other like %a, b#, c$c" "" "and"
.xx "" "for" "roff" "" """quotes"","
.xx "" "" "some other like %a, b#, c$c" "" "and"
.xx "" "check" "special characters:" "" "let's"
.xx "" "for" "tex" "" "{brackets}"
.xx "" "" "world!" "" "hello"

View file

@ -0,0 +1,24 @@
.xx "" "" """quotes"", for roff" ""
.xx "" "and some other like" "%a, b#, c$c" ""
.xx "" "maybe" "also~or^" ""
.xx "" "" "and some other like %a, b#, c$c" ""
.xx "" "oh," "and back\slash" ""
.xx "" "and some other like %a," "b#, c$c" ""
.xx "" "oh, and" "back\slash" ""
.xx "" "and some other like %a, b#," "c$c" ""
.xx "" "let's check special" "characters:" ""
.xx "" "let's" "check special characters:" ""
.xx "" """quotes""," "for roff" ""
.xx "" "{brackets}" "for tex" ""
.xx "" "" "hello world!" ""
.xx "" "" "let's check special characters:" ""
.xx "" "and some other" "like %a, b#, c$c" ""
.xx "" "" "maybe also~or^" ""
.xx "" "" "oh, and back\slash" ""
.xx "" "and some" "other like %a, b#, c$c" ""
.xx "" """quotes"", for" "roff" ""
.xx "" "and" "some other like %a, b#, c$c" ""
.xx "" "let's check" "special characters:" ""
.xx "" "{brackets} for" "tex" ""
.xx "" "hello" "world!" ""
.xx "" "" "{brackets} for tex" ""

View file

@ -0,0 +1,24 @@
\xx {}{}{"quotes",}{ for roff}{}{input:3}
\xx {}{and some other like}{\%a,}{ b\#, c\$c}{}{input:5}
\xx {}{maybe}{also~or^}{}{}{input:6}
\xx {}{}{and}{ some other like \%a, b\#, c\$c}{}{input:5}
\xx {}{oh,}{and}{ back\backslash{}slash}{}{input:7}
\xx {}{and some other like \%a,}{b\#,}{ c\$c}{}{input:5}
\xx {}{oh, and}{back\backslash{}slash}{}{}{input:7}
\xx {}{and some other like \%a, b\#,}{c\$c}{}{}{input:5}
\xx {}{let's check special}{characters:}{}{}{input:2}
\xx {}{let's}{check}{ special characters:}{}{input:2}
\xx {}{"quotes",}{for}{ roff}{}{input:3}
\xx {}{$\{$brackets$\}$}{for}{ tex}{}{input:4}
\xx {}{}{hello}{ world!}{}{input:1}
\xx {}{}{let's}{ check special characters:}{}{input:2}
\xx {}{and some other}{like}{ \%a, b\#, c\$c}{}{input:5}
\xx {}{}{maybe}{ also~or^}{}{input:6}
\xx {}{}{oh,}{ and back\backslash{}slash}{}{input:7}
\xx {}{and some}{other}{ like \%a, b\#, c\$c}{}{input:5}
\xx {}{"quotes", for}{roff}{}{}{input:3}
\xx {}{and}{some}{ other like \%a, b\#, c\$c}{}{input:5}
\xx {}{let's check}{special}{ characters:}{}{input:2}
\xx {}{$\{$brackets$\}$ for}{tex}{}{}{input:4}
\xx {}{hello}{world!}{}{}{input:1}
\xx {}{}{$\{$brackets$\}$}{ for tex}{}{input:4}

View file

@ -0,0 +1,17 @@
\xx {}{some other like}{\%a,}{ b\#, c\$c}{}{and}
\xx {}{}{also~or^}{}{}{maybe}
\xx {}{}{and}{ back\backslash{}slash}{}{oh,}
\xx {}{some other like \%a,}{b\#,}{ c\$c}{}{and}
\xx {}{and}{back\backslash{}slash}{}{}{oh,}
\xx {}{some other like \%a, b\#,}{c\$c}{}{}{and}
\xx {}{check special}{characters:}{}{}{let's}
\xx {}{}{check}{ special characters:}{}{let's}
\xx {}{}{for}{ roff}{}{"quotes",}
\xx {}{}{for}{ tex}{}{$\{$brackets$\}$}
\xx {}{some other}{like}{ \%a, b\#, c\$c}{}{and}
\xx {}{some}{other}{ like \%a, b\#, c\$c}{}{and}
\xx {}{for}{roff}{}{}{"quotes",}
\xx {}{}{some}{ other like \%a, b\#, c\$c}{}{and}
\xx {}{check}{special}{ characters:}{}{let's}
\xx {}{for}{tex}{}{}{$\{$brackets$\}$}
\xx {}{}{world!}{}{}{hello}

View file

@ -0,0 +1,24 @@
\xx {}{}{"quotes",}{ for roff}{}
\xx {}{and some other like}{\%a,}{ b\#, c\$c}{}
\xx {}{maybe}{also~or^}{}{}
\xx {}{}{and}{ some other like \%a, b\#, c\$c}{}
\xx {}{oh,}{and}{ back\backslash{}slash}{}
\xx {}{and some other like \%a,}{b\#,}{ c\$c}{}
\xx {}{oh, and}{back\backslash{}slash}{}{}
\xx {}{and some other like \%a, b\#,}{c\$c}{}{}
\xx {}{let's check special}{characters:}{}{}
\xx {}{let's}{check}{ special characters:}{}
\xx {}{"quotes",}{for}{ roff}{}
\xx {}{$\{$brackets$\}$}{for}{ tex}{}
\xx {}{}{hello}{ world!}{}
\xx {}{}{let's}{ check special characters:}{}
\xx {}{and some other}{like}{ \%a, b\#, c\$c}{}
\xx {}{}{maybe}{ also~or^}{}
\xx {}{}{oh,}{ and back\backslash{}slash}{}
\xx {}{and some}{other}{ like \%a, b\#, c\$c}{}
\xx {}{"quotes", for}{roff}{}{}
\xx {}{and}{some}{ other like \%a, b\#, c\$c}{}
\xx {}{let's check}{special}{ characters:}{}
\xx {}{$\{$brackets$\}$ for}{tex}{}{}
\xx {}{hello}{world!}{}{}
\xx {}{}{$\{$brackets$\}$}{ for tex}{}

2
tests/fixtures/ptx/ignore vendored Normal file
View file

@ -0,0 +1,2 @@
maybe
about

7
tests/fixtures/ptx/input vendored Normal file
View file

@ -0,0 +1,7 @@
hello world!
let's check special characters:
"quotes", for roff
{brackets} for tex
and some other like %a, b#, c$c
maybe also~or^
oh, and back\slash

5
tests/fixtures/ptx/only vendored Normal file
View file

@ -0,0 +1,5 @@
roff
tex
world
maybe
about