Skip to content

Commit

Permalink
Allow testing single exercise
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Jan 5, 2025
1 parent 8142d38 commit 782bc4e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@
"status"))))

(defn test-exercises! []
(for [exercise (into practice-exercises concept-exercises)]
{(keyword exercise) (test-exercise exercise)}))
(let [exercises (or (seq (take 1 *command-line-args*))
(into practice-exercises concept-exercises))]
(for [exercise exercises]
{(keyword exercise) (test-exercise exercise)})))

(let [results (test-exercises!)
fails (filter #(false? (first (vals %))) results)]
Expand Down

0 comments on commit 782bc4e

Please sign in to comment.