diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2009-02-28 18:02:11 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2009-02-28 18:02:11 +0100 |
commit | 6f20b17624a1fb9c6e4d6fd1ba4efaf463209065 (patch) | |
tree | a7ac85886fc0e917dc6cc233d0629373643195c6 /tests | |
parent | 07d9ffe35c6dffda66987832a25802cbf54f2f4e (diff) |
check_is_in fixes.. and this time i mean it.. i think. hopefully. + test script for check_is_in
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test-check_is_in.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test-check_is_in.sh b/tests/test-check_is_in.sh new file mode 100755 index 0000000..0d97361 --- /dev/null +++ b/tests/test-check_is_in.sh @@ -0,0 +1,7 @@ +basedir=$(dirname "`dirname $0`") +source $basedir/src/core/libs/lib-ui.sh #dependency needed +source $basedir/src/core/libs/lib-misc.sh + +vars=(A B C D E F) +check_is_in C "${vars[@]}" && echo 'ok C was in there' || echo 'wtf' +check_is_in AOEUAU "${vars[@]}" && echo wtf || echo 'ok it was not in there' |