1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

more: add arguments print over and clean print

This commit is contained in:
Ideflop 2023-05-17 20:38:03 +02:00
parent d769871374
commit b676875c0c
2 changed files with 67 additions and 23 deletions

View file

@ -10,6 +10,15 @@ fn test_more_no_arg() {
}
}
#[test]
fn test_valid_arg() {
new_ucmd!().arg("-c").succeeds().code_is(0);
new_ucmd!().arg("--print-over").succeeds().code_is(0);
new_ucmd!().arg("-p").succeeds().code_is(0);
new_ucmd!().arg("--clean-print").succeeds().code_is(0);
}
#[test]
fn test_more_dir_arg() {
// Run the test only if there's a valid terminal, else do nothing