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:
parent
b20b2cca19
commit
a21c54e2cd
165 changed files with 4315 additions and 3538 deletions
2
tests/fixtures/ptx/gnu_ext_disabled_ignore_and_only_file.expected
vendored
Normal file
2
tests/fixtures/ptx/gnu_ext_disabled_ignore_and_only_file.expected
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
.xx "" """quotes"", for" "roff" ""
|
||||
.xx "" "{brackets} for" "tex" ""
|
24
tests/fixtures/ptx/gnu_ext_disabled_roff_auto_ref.expected
vendored
Normal file
24
tests/fixtures/ptx/gnu_ext_disabled_roff_auto_ref.expected
vendored
Normal 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"
|
17
tests/fixtures/ptx/gnu_ext_disabled_roff_input_ref.expected
vendored
Normal file
17
tests/fixtures/ptx/gnu_ext_disabled_roff_input_ref.expected
vendored
Normal 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"
|
24
tests/fixtures/ptx/gnu_ext_disabled_roff_no_ref.expected
vendored
Normal file
24
tests/fixtures/ptx/gnu_ext_disabled_roff_no_ref.expected
vendored
Normal 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" ""
|
24
tests/fixtures/ptx/gnu_ext_disabled_tex_auto_ref.expected
vendored
Normal file
24
tests/fixtures/ptx/gnu_ext_disabled_tex_auto_ref.expected
vendored
Normal 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}
|
17
tests/fixtures/ptx/gnu_ext_disabled_tex_input_ref.expected
vendored
Normal file
17
tests/fixtures/ptx/gnu_ext_disabled_tex_input_ref.expected
vendored
Normal 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}
|
24
tests/fixtures/ptx/gnu_ext_disabled_tex_no_ref.expected
vendored
Normal file
24
tests/fixtures/ptx/gnu_ext_disabled_tex_no_ref.expected
vendored
Normal 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
2
tests/fixtures/ptx/ignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
maybe
|
||||
about
|
7
tests/fixtures/ptx/input
vendored
Normal file
7
tests/fixtures/ptx/input
vendored
Normal 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
5
tests/fixtures/ptx/only
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
roff
|
||||
tex
|
||||
world
|
||||
maybe
|
||||
about
|
Loading…
Add table
Add a link
Reference in a new issue