mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-09-15 11:36:16 +00:00
Merge pull request #4872 from Ideflop/more_implement_print_over_and_clean_print
more: add arguments print over and clean print
This commit is contained in:
commit
70765eea82
2 changed files with 75 additions and 23 deletions
|
@ -10,6 +10,18 @@ fn test_more_no_arg() {
|
|||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_valid_arg() {
|
||||
if std::io::stdout().is_terminal() {
|
||||
new_ucmd!().arg("-c").succeeds();
|
||||
new_ucmd!().arg("--print-over").succeeds();
|
||||
|
||||
new_ucmd!().arg("-p").succeeds();
|
||||
new_ucmd!().arg("--clean-print").succeeds();
|
||||
} else {
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_more_dir_arg() {
|
||||
// Run the test only if there's a valid terminal, else do nothing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue