mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-09-15 11:36:16 +00:00
dircolors: manage the --print-ls-colors pipe option
This commit is contained in:
parent
f5776bc511
commit
dabbcff9fb
2 changed files with 23 additions and 4 deletions
|
@ -159,6 +159,16 @@ fn test_quoting() {
|
|||
.no_stderr();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_print_ls_colors() {
|
||||
new_ucmd!()
|
||||
.pipe_in("OWT 40;33\n")
|
||||
.args(&["--print-ls-colors"])
|
||||
.succeeds()
|
||||
.stdout_is("\x1B[40;33mtw\t40;33\x1B[0m\n")
|
||||
.no_stderr();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_extra_operand() {
|
||||
new_ucmd!()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue