Browse Source

fix(hard-conditions): adding test case for nos executable

pull/1724/head
miguel 2 years ago committed by MSilva95
parent
commit
9eb5d849d5
  1. 0
      sh/tests/hard-conditions/non-ex
  2. 1
      sh/tests/hard-conditions/test-hard-conditions.sh
  3. 8
      sh/tests/hard-conditions_test.sh

1
sh/tests/hard-conditions/test-hard-conditions.sh

@ -0,0 +1 @@
echo "hello world"

8
sh/tests/hard-conditions_test.sh

@ -5,7 +5,9 @@ set -euo pipefail
IFS='
'
script_dirS=$(cd -P "$(dirname "$BASH_SOURCE")" &>/dev/null && pwd)
cd "$script_dirS"
submitted=$(bash "$script_dirS"/student/hard-conditions.sh hard-conditions_test.sh)
expected=$(bash "$script_dirS"/solutions/hard-conditions.sh hard-conditions_test.sh)
submitted=$(bash "$script_dirS"/student/hard-conditions.sh hard-conditions/test-hard-conditions.sh)
expected=$(bash "$script_dirS"/solutions/hard-conditions.sh hard-conditions/test-hard-conditions.sh)
diff <(echo "$submitted") <(echo "$expected")
submitted=$(bash "$script_dirS"/student/hard-conditions.sh hard-conditions/non-ex)
expected=$(bash "$script_dirS"/solutions/hard-conditions.sh hard-conditions/non-ex)
diff <(echo "$submitted") <(echo "$expected")

Loading…
Cancel
Save