* Add java.util.Arrays/copyOfRange for slingshot * add exception for tests * Add slingshot tests
8 lines
292 B
Clojure
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"))))
|