mirror of
https://github.com/uutils/coreutils
synced 2024-11-16 09:48:03 +00:00
16 lines
440 B
Rust
16 lines
440 B
Rust
use crate::common::util::*;
|
|
|
|
#[test]
|
|
fn test_more_no_arg() {
|
|
// stderr = more: Reading from stdin isn't supported yet.
|
|
new_ucmd!().fails();
|
|
}
|
|
|
|
#[test]
|
|
fn test_more_dir_arg() {
|
|
let result = new_ucmd!().arg(".").run();
|
|
result.failure();
|
|
const EXPECTED_ERROR_MESSAGE: &str =
|
|
"more: '.' is a directory.\nTry 'more --help' for more information.";
|
|
assert_eq!(result.stderr_str().trim(), EXPECTED_ERROR_MESSAGE);
|
|
}
|