mirror of
https://github.com/tests-always-included/mo.git
synced 2024-12-24 02:16:38 +00:00
14 lines
243 B
Bash
Executable File
14 lines
243 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
cd "${0%/*}"
|
|
unset __NO_SUCH_VAR
|
|
POPULATED="words" EMPTY="" ../mo --fail-not-set 2>&1 <<EOF
|
|
Populated: {{POPULATED}};
|
|
Empty: {{EMPTY}};
|
|
Unset: {{__NO_SUCH_VAR}};
|
|
EOF
|
|
|
|
if [[ $? -ne 1 ]]; then
|
|
echo "Did not return 1"
|
|
fi
|