babashka/test-resources/lib_tests/slingshot/test_test.clj
Michiel Borkent 15e54ef0a1
Add support for slingshot #675 (#881)
* Add java.util.Arrays/copyOfRange for slingshot

* add exception for tests

* Add slingshot tests
2021-06-09 10:39:43 +02:00

8 lines
292 B
Clojure

(ns slingshot.test-test
(:require [clojure.test :refer :all]
[slingshot.slingshot :refer [throw+]]
[slingshot.test]))
(deftest test-slingshot-test-macros
(is (thrown+? string? (throw+ "test")))
(is (thrown+-with-msg? string? #"th" (throw+ "test" "hi there"))))