clojure.test 中是否存在与 Midje 事实形式等效的形式?

Is there an equivalent of Midje facts form in clojure.test?

Midje 中的

(facts ...) 表格,让我们将一堆 (fact ..) 表格分组,并在其下放置更多 (facts ..) 表格。

在clojure.test中编写相应的测试套件时,应该用什么来代替,(facts ...)? clojure 中还有其他具有相似语义的东西吗?

您可以使用 testing 对测试进行分组。来自链接文档页面的释义示例:

(deftest arithmetic
  (testing "with positive integers"
    (is (= 4 (+ 2 2)))
    (is (= 7 (+ 3 4))))
  (testing "with negative integers"
    (is (= -4 (+ -2 -2)))
    (is (= -1 (+ 3 -4)))))