Browse Source

Update to-git-or-not-to-git_test.sh

Fixing the file empty hack. Howeve this does not fix the whole test yet. The curl still returs a \n.
update-quest-08-exercises-description-c-150
Christopher Fremond 2 years ago committed by GitHub
parent
commit
e221c91bd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      sh/tests/to-git-or-not-to-git_test.sh

4
sh/tests/to-git-or-not-to-git_test.sh

@ -8,10 +8,6 @@ FILENAME="student/to-git-or-not-to-git.sh"
if [ -f ${FILENAME} ]; then
if [ -s ${FILENAME} ]; then
submitted=$(bash student/to-git-or-not-to-git.sh)
expected=$(bash solutions/to-git-or-not-to-git.sh)
echo $submitted
echo $expected
diff <(echo "$submitted") <(echo "$expected")
else
echo "The file exist but empty"

Loading…
Cancel
Save