mirror of https://github.com/01-edu/public.git
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.
22 lines
496 B
22 lines
496 B
#!/usr/bin/env bash |
|
|
|
IFS=' |
|
' |
|
|
|
challenge () { |
|
if [[ $# -eq 1 && -d "$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 |
|
} |
|
|
|
mkdir remake remake-expected |
|
challenge remake |
|
challenge |
|
challenge not-there |
|
rm -rf remake remake-expected |
|
|
|
|