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
400 B
19 lines
400 B
2 years ago
|
#!/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
|