mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
tests ~ reorganize tests
This commit is contained in:
parent
1c88bc8c45
commit
de0375f909
75 changed files with 0 additions and 0 deletions
15
tests/by-util/test_pathchk.rs
Normal file
15
tests/by-util/test_pathchk.rs
Normal file
|
@ -0,0 +1,15 @@
|
|||
use crate::common::util::*;
|
||||
|
||||
#[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();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue