mirror of
https://github.com/uutils/coreutils
synced 2024-11-16 09:48:03 +00:00
99b39e4237
Although for some tests this adds characters we still use them there because the brevity cost is now worth the benefit in terms of instant, natural-language readability and recognizability for people not familiar with this tests of this module or even the project
17 lines
397 B
Rust
17 lines
397 B
Rust
use common::util::*;
|
|
|
|
static UTIL_NAME: &'static str = "pathchk";
|
|
fn new_ucmd() -> UCommand {
|
|
TestScenario::new(UTIL_NAME).ucmd()
|
|
}
|
|
|
|
#[test]
|
|
fn test_default_mode() {
|
|
// test the default mode
|
|
|
|
// accept some reasonable default
|
|
new_ucmd().args(&["abc/def"]).succeeds().no_stdout();
|
|
|
|
// fail on long inputs
|
|
new_ucmd().args(&[repeat_str("test", 20000)]).fails().no_stdout();
|
|
}
|