Skip to content

Commit

Permalink
(Issue #4) Add new parameters test for -i | --ignore-line-prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasWillin committed Jun 15, 2023
1 parent e54d695 commit 65660cc
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/functional/parameters.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 65660cc

Please sign in to comment.