You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
400 B

#!/usr/bin/env bash
IFS='
'
challenge () {
if [[ $# -eq 1 ]]; then
submitted=$(bash student/remake.sh "$1")
expected=$(bash solutions/remake.sh "$1"-expected)
diff <(echo $submitted) <(echo $expected)
diff <(ls -ltr $1) <(ls -ltr $1-expected)
else
diff <(bash student/remake.sh "$@") <(bash solutions/remake.sh "$@")
fi
}
challenge a
challenge