summaryrefslogtreecommitdiff
path: root/tests/test-check_is_in.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-check_is_in.sh')
-rwxr-xr-xtests/test-check_is_in.sh7
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'