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.
19 lines
439 B
19 lines
439 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) |
|
rm -rf "$1" "$1-expected" |
|
else |
|
diff <(bash student/remake.sh "$@") <(bash solutions/remake.sh "$@") |
|
fi |
|
} |
|
|
|
challenge remake |
|
challenge
|
|
|