coreutils/tests/by-util/test_pathchk.rs
Neculai Balaban 93c7cbe65e documentation for usual macros
- removed repeat_str helper as it's now part of std
- added docstrings for usual macros and test utils
2021-03-22 12:13:38 +02:00

15 lines
313 B
Rust

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(&["test".repeat(20000)])
.fails()
.no_stdout();
}