From b4969c6cc2f6475bc422513908085452cf825e7f Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Tue, 20 Oct 2020 22:35:19 +0200 Subject: [PATCH] test(seq): add a test to check that we don't accept more than 3 args --- tests/by-util/test_seq.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/by-util/test_seq.rs b/tests/by-util/test_seq.rs index 440a2bc98..9ee5c94aa 100644 --- a/tests/by-util/test_seq.rs +++ b/tests/by-util/test_seq.rs @@ -31,3 +31,8 @@ fn test_equalize_widths() { .run() .stdout_is("05\n06\n07\n08\n09\n10\n"); } + +#[test] +fn test_seq_wrong_arg() { + new_ucmd!().args(&["-w", "5", "10", "33", "32"]).fails(); +}