Skip to content

Commit

Permalink
grammar and remove ordianal str
Browse files Browse the repository at this point in the history
  • Loading branch information
qnkhuat committed Jan 8, 2024
1 parent 4cb653d commit 24e8d18
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/mb/hawk/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,6 @@
options))
@*parallel-test-counter*))))))

(defn- ordinal-str
[n]
(let [suffix (if (and (>= n 11) (<= (mod n 100) 13))
"th"
(nth ["th" "st" "nd" "rd" "th"] (min (mod n 10) 4)))]
(str n suffix)))

(defn- run-tests-n-times
"[[run-tests]] but repeat `n` times.
Returns the combined summary of all the individual test runs."
Expand All @@ -206,7 +199,7 @@
(for [i (range 1 (inc n))]
(do
(println "----------------------------")
(printf "Running tests the %s %s\n" (ordinal-str i) (if (> 1 i) "times" "time"))
(printf "Starting test iteration #%d\n" i)
(run-tests test-vars options)))))

(defn- find-and-run-tests-with-options
Expand Down

0 comments on commit 24e8d18

Please sign in to comment.