summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTimothy Pratley <timothypratley@gmail.com>2010-01-30 16:20:48 +1100
committerRich Hickey <richhickey@gmail.com>2010-03-11 07:19:00 -0500
commite2cdf7dea9b0a459e781e4da320817be56aa6a8d (patch)
treef0c457b842a3fb62f7bf0c27ec55e6b675d188c3 /test
parentec9b5846dead9bbdf6dc955c7a5e74cc61cd3e4e (diff)
check load arguments and options are valid #253
Signed-off-by: Rich Hickey <richhickey@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/clojure/test_clojure/ns_libs.clj8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/clojure/test_clojure/ns_libs.clj b/test/clojure/test_clojure/ns_libs.clj
index a9a2145c..c5b9666a 100644
--- a/test/clojure/test_clojure/ns_libs.clj
+++ b/test/clojure/test_clojure/ns_libs.clj
@@ -26,3 +26,11 @@
; require use
; loaded-libs
+(deftest test-require
+ (is (thrown? Exception (require :foo)))
+ (is (thrown? Exception (require))))
+
+(deftest test-use
+ (is (thrown? Exception (use :foo)))
+ (is (thrown? Exception (use))))
+