Skip to content

Commit

Permalink
Verify single exercise
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed May 24, 2024
1 parent 953cce9 commit 00b8ebb
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions bin/verify-exercises
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,24 @@
# The path to the solution/example/exemplar files can be found in the exercise's
# .meta/config.json file, or possibly inferred from the exercise's directory name.

# Example:
# Example: verify all exercises
# ./bin/verify-exercises

# Example: verify single exercise
# ./bin/verify-exercises two-fer

slug="${1:-*}"

# Verify the Concept Exercises
for concept_exercise_dir in ./exercises/concept/*/; do
for concept_exercise_dir in ./exercises/concept/${slug}/; do
if [ -d $concept_exercise_dir ]; then
echo "Checking $(basename "${concept_exercise_dir}") exercise..."
# TODO: run command to verify that the exemplar solution passes the tests
fi
done

# Verify the Practice Exercises
for practice_exercise_dir in ./exercises/practice/*/; do
for practice_exercise_dir in ./exercises/practice/${slug}/; do
if [ -d $practice_exercise_dir ]; then
echo "Checking $(basename "${practice_exercise_dir}") exercise..."
# TODO: run command to verify that the example solution passes the tests
Expand Down

0 comments on commit 00b8ebb

Please sign in to comment.