mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Add new test to verify GNU compatible quotation.
Co-authored-by: anastygnome <noreplygitemail@protonmail.com>
This commit is contained in:
parent
4f043ff57f
commit
bd96f25ec8
1 changed files with 14 additions and 0 deletions
|
@ -119,6 +119,20 @@ fn test_single_all_counts() {
|
||||||
.stdout_is(" 5 57 302 302 66 alice_in_wonderland.txt\n");
|
.stdout_is(" 5 57 302 302 66 alice_in_wonderland.txt\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(unix)]
|
||||||
|
#[test]
|
||||||
|
fn test_gnu_compatible_quotation() {
|
||||||
|
let scene = TestScenario::new(util_name!());
|
||||||
|
let at = &scene.fixtures;
|
||||||
|
at.mkdir("some-dir1");
|
||||||
|
at.touch("some-dir1/12\n34.txt");
|
||||||
|
scene
|
||||||
|
.ucmd()
|
||||||
|
.args(&["some-dir1/12\n34.txt"])
|
||||||
|
.run()
|
||||||
|
.stdout_is("0 0 0 'some-dir1/12'$'\\n''34.txt'\n");
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_multiple_default() {
|
fn test_multiple_default() {
|
||||||
new_ucmd!()
|
new_ucmd!()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue