1
Fork 0
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:
Daniel Hofstetter 2023-05-20 15:32:50 +02:00 committed by GitHub
commit 70765eea82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 75 additions and 23 deletions

View file

@ -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