diff --git a/tests/functional/parameters.test.sh b/tests/functional/parameters.test.sh index e1036bb..9f67f62 100644 --- a/tests/functional/parameters.test.sh +++ b/tests/functional/parameters.test.sh @@ -49,6 +49,26 @@ Context "Parameter testing:" End End + Describe "should have ignore option..." + Parameters + "Short" "-i" + "Long" "--ignore-line-prefix" + End + + Example "$1 ($2)" + Set 'errexit:on' + + + When call "${LIBRARY_PATH}" $2 + The status should be success + + # Here i use a custom matcher function because the text has ANSI colors by default, + # and this makes impossible to the `eq` matcher to find text. + The output should satisfy match_colored_text "OPTIONS:" + The output should satisfy match_colored_text "USAGE:" + End + End + Describe "should SUCCEED when passed the right arguments:" long_input_text="$( %text