标签: unit-testing clojure
如何在Clojure的测试中设置异常的预期?
提前致谢!
答案 0 :(得分:12)
(is (thrown? NumberFormatException (Integer/parseInt "49FREN")))