2011-08-09 16 views

risposta

12
(is (thrown? NumberFormatException (Integer/parseInt "49FREN"))) 
+0

grazie! subito dopo averlo pubblicato, l'ho trovato nella documentazione dell'API X {D – Hugo

+1

Documentazione pertinente, ['is'] (http://clojuredocs.org/clojure_core/clojure.test/is) e [API for clojure.test] (http : //richhickey.github.io/clojure/clojure.test-api.html). –