user=> (deftest test-if (is (thrown? Exception (if))))
java.lang.Exception: Too few arguments to if (NO_SOURCE_FILE:35)

user=> (deftest test-div (is (thrown? ArithmeticException (/ 1 0))))
#'user/test-div

Yes, looks like it. Compile-time and run-time exceptions - will have
to remember that ;-)

Frantisek

PS: I still wonder why REPL has that "(" char after exception. Bug?

On 5 Ún, 15:28, Jeffrey Straszheim <[email protected]>
wrote:
> From a quick glance, it looks like the exceptions that are *not* being
> caught are those generated by the compiler, who can't understand the code.
>  test-is can't find those because the code doesn't even run in that case.
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to