mirror of
https://github.com/correl/elm.git
synced 2025-01-11 19:13:05 +00:00
12 lines
535 B
Bash
Executable file
12 lines
535 B
Bash
Executable file
for example_file in exercises/**/*.example
|
|
do
|
|
exercise_dir=$(dirname $example_file)
|
|
exercise=$(basename $example_file .example)
|
|
mv "$exercise_dir/$exercise.elm" "$exercise_dir/$exercise.impl"
|
|
mv "$exercise_dir/$exercise.example" "$exercise_dir/$exercise.elm"
|
|
echo '-------------------------------------------------------'
|
|
echo "Testing $exercise"
|
|
elm-test $exercise_dir/*Tests.elm
|
|
mv "$exercise_dir/$exercise.elm" "$exercise_dir/$exercise.example"
|
|
mv "$exercise_dir/$exercise.impl" "$exercise_dir/$exercise.elm"
|
|
done
|