testing

Testing tools, testing philosophy & methodology...
2019-07-08T22:06:40.003900Z

what’s the best way to test multiple assertions from defined variables? ex. i have this but feel there must be a more idiomatic way:

(def pangrams
  ["the quick brown fox jumps over the lazy dog"
   "My girl wove six dozen plaid jackets before she quit!"
   "J.Q. Schwartz flung V.D. Pike my box"])

(def not-pangrams
  ["Sadly, I am not a pangram :("])

(deftest pangram-1-test
  (testing "is the given string a pangram according to pangram-1 fn?"
    (dorun (map #(is (= true (pangram-1? %))) pangrams))
    (dorun (map #(is (= false (pangram-1? %))) not-pangrams))))