From 752230d7288cd8efd7606f7c4032077590fbac0f Mon Sep 17 00:00:00 2001 From: Jan Sucan Date: Sat, 5 Mar 2022 12:30:59 +0100 Subject: tests: Add option parsing tests --- tests/002-too_many_arguments.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/002-too_many_arguments.sh (limited to 'tests/002-too_many_arguments.sh') diff --git a/tests/002-too_many_arguments.sh b/tests/002-too_many_arguments.sh new file mode 100644 index 0000000..b6a1990 --- /dev/null +++ b/tests/002-too_many_arguments.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +source ./assert.sh + +PROGRAM_EXEC="$1" + +assert_error "too many arguments" $PROGRAM_EXEC arg1 arg2 arg3 arg4 + +exit 0 -- cgit v1.2.3