From 62901490e14fbcf6268e6fc1f451e5b39612dc11 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Mon, 11 May 2020 10:44:12 +0200 Subject: [PATCH] test(more): add a test for more when called without arg --- tests/test_more.rs | 8 ++++++++ tests/tests.rs | 1 + 2 files changed, 9 insertions(+) create mode 100644 tests/test_more.rs diff --git a/tests/test_more.rs b/tests/test_more.rs new file mode 100644 index 000000000..9d4835769 --- /dev/null +++ b/tests/test_more.rs @@ -0,0 +1,8 @@ +use common::util::*; + +#[test] +fn test_more_no_arg() { + let (_, mut ucmd) = at_and_ucmd!(); + let result = ucmd.run(); + assert!(!result.success); +} diff --git a/tests/tests.rs b/tests/tests.rs index ead3b68f9..a99c7cc26 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -75,6 +75,7 @@ generic! { "ls", test_ls; "mkdir", test_mkdir; "mktemp", test_mktemp; + "more", test_more; "mv", test_mv; "numfmt", test_numfmt; "nl", test_nl;