aboutsummaryrefslogtreecommitdiff
path: root/src/clojure/contrib/test_clojure.clj
diff options
context:
space:
mode:
authorscgilardi <scgilardi@gmail.com>2008-11-12 22:31:20 +0000
committerscgilardi <scgilardi@gmail.com>2008-11-12 22:31:20 +0000
commit6f7a77e9cdc8df4f58fd86eed0dcd0dd6fc2d6fd (patch)
tree84939b269427bb8213c7db3e002628aa13816bd3 /src/clojure/contrib/test_clojure.clj
parentdb748f4c8b6f37da894b3c8f7a3bb683eea3f0aa (diff)
first cut at changes for Clojure SVN 1094+, my contribs and ones they depend on now load again
Diffstat (limited to 'src/clojure/contrib/test_clojure.clj')
-rw-r--r--src/clojure/contrib/test_clojure.clj32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/clojure/contrib/test_clojure.clj b/src/clojure/contrib/test_clojure.clj
new file mode 100644
index 00000000..60c19e35
--- /dev/null
+++ b/src/clojure/contrib/test_clojure.clj
@@ -0,0 +1,32 @@
+;; Copyright (c) Stephen C. Gilardi. All rights reserved. The use and
+;; distribution terms for this software are covered by the Common Public
+;; License 1.0 (http://opensource.org/licenses/cpl.php) which can be found
+;; in the file CPL.TXT at the root of this distribution. By using this
+;; software in any fashion, you are agreeing to be bound by the terms of
+;; this license. You must not remove this notice, or any other, from this
+;; software.
+;;
+;; clojure.contrib.test-clojure
+;;
+;; Tests for the facilities provided by Clojure
+;;
+;; scgilardi (gmail)
+;; Created 22 October 2008
+
+(ns clojure.contrib.test-clojure
+ (:import (java.io File FilenameFilter))
+ (:use clojure.contrib.test-is))
+
+(def tests [:reader :printer :numbers])
+
+(defn test-name
+ [test]
+ (symbol (str "clojure.contrib.test-clojure." (name test))))
+
+(doseq [test tests]
+ (require (test-name test)))
+
+(binding [*test-out* (java.io.PrintWriter. *out*)]
+ (doseq [test tests]
+ (println "\n\n=====>" test)
+ (run-tests (test-name test))))