1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-16 03:36:18 +00:00

dircolors: make -b & -c args overridable

This commit is contained in:
Daniel Hofstetter 2022-05-27 10:24:37 +02:00
parent 1d18eabf0b
commit 598fdc4430
2 changed files with 16 additions and 0 deletions

View file

@ -1,3 +1,4 @@
// spell-checker:ignore overridable
use crate::common::util::*;
extern crate dircolors;
@ -78,6 +79,19 @@ fn test_csh_default() {
.run()
.stdout_is_fixture("csh_def.expected");
}
#[test]
fn test_overridable_args() {
new_ucmd!()
.env("TERM", "screen")
.arg("-bc")
.run()
.stdout_is_fixture("csh_def.expected");
new_ucmd!()
.env("TERM", "screen")
.arg("-cb")
.run()
.stdout_is_fixture("bash_def.expected");
}
#[test]
fn test_no_env() {