Browse Source

test(bin-status): fix tests always returning success

pull/1717/head
Michele Sessa 2 years ago committed by Michele
parent
commit
3d0e7cb960
  1. 4
      sh/tests/bin-status_test.sh

4
sh/tests/bin-status_test.sh

@ -9,8 +9,8 @@ FILENAME="student/bin-status.sh"
challenge() {
submitted=$(eval "$1" ; bash $FILENAME)
expected=$(eval "$1" ; bash solutions/bin-status.sh)
submitted=$(eval "$@" >/dev/null 2>&1 ; source $FILENAME)
expected=$(eval "$@" >/dev/null 2>&1 ; source solutions/bin-status.sh)
diff <(echo "$submitted") <(echo "$expected")
}

Loading…
Cancel
Save