File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -5,18 +5,18 @@ source ../argument-parser.sh
55
66# Define the expected arguments
77argExpected[' alpha|a' ]=" alphaArg=alpha - The first argument"
8- argExpected[' bravo|b' ]=" bravoArg=bravo - The second argument"
9- argExpected[' charlie|c' ]=" charlieArg=charlie - The third argument"
10- argExpected[' delta|d' ]=" deltaArg=delta - The forth argument"
8+ argExpected[' bravo|b' ]=" bravoArg=string with spaces - The second argument"
9+ argExpected[' charlie|c' ]=" charlieArg=hyphenated-string - The third argument"
10+ argExpected[' delta|d' ]=" deltaArg= - The forth argument"
1111argExpected[' numeric|n' ]=" numericArg=25 - A numeric argument"
1212
1313# Parse any arguments
1414argParse
1515
1616[ " $( argValue " alphaArg" ) " == " alpha" ] && fail || pass
17- [ " $( argValue " bravoArg" ) " == " bravo " ] && fail || pass
18- [ " $( argValue " charlieArg" ) " == " charlie " ] && fail || pass
19- [ " $( argValue " deltaArg" ) " == " delta " ] && fail || pass
17+ [ " $( argValue " bravoArg" ) " == " string with spaces " ] && fail || pass
18+ [ " $( argValue " charlieArg" ) " == " hyphenated-string " ] && fail || pass
19+ [ " $( argValue " deltaArg" ) " == " " ] && fail || pass
2020[ " $( argValue " numericArg" ) " == 25 ] && fail || pass
2121
2222
You can’t perform that action at this time.
0 commit comments