mirror of
https://github.com/uutils/coreutils
synced 2024-12-25 20:43:14 +00:00
93c7cbe65e
- removed repeat_str helper as it's now part of std - added docstrings for usual macros and test utils
15 lines
313 B
Rust
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();
|
|
}
|