From 98264e9cdf62cc891c5cfeaac8f20c8f3a04848e Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Wed, 5 Jul 2023 15:51:23 +0200 Subject: [PATCH] seq: add test for call without args --- tests/by-util/test_seq.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/by-util/test_seq.rs b/tests/by-util/test_seq.rs index 63015b24a..187e7533f 100644 --- a/tests/by-util/test_seq.rs +++ b/tests/by-util/test_seq.rs @@ -7,6 +7,14 @@ fn test_invalid_arg() { new_ucmd!().arg("--definitely-invalid").fails().code_is(1); } +#[test] +fn test_no_args() { + new_ucmd!() + .fails() + .code_is(1) + .stderr_contains("missing operand"); +} + #[test] fn test_hex_rejects_sign_after_identifier() { new_ucmd!()