Mercurial > lasercutter
view src/clojure/contrib/test_contrib/datalog/tests/test.clj @ 10:ef7dbbd6452c
added clojure source goodness
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 21 Aug 2010 06:25:44 -0400 |
parents | |
children |
line wrap: on
line source
1 ;; Copyright (c) Jeffrey Straszheim. All rights reserved. The use and2 ;; distribution terms for this software are covered by the Eclipse Public3 ;; License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) which can4 ;; be found in the file epl-v10.html at the root of this distribution. By5 ;; using this software in any fashion, you are agreeing to be bound by the6 ;; terms of this license. You must not remove this notice, or any other,7 ;; from this software.8 ;;9 ;; test.clj10 ;;11 ;; A Clojure implementation of Datalog -- Tests12 ;;13 ;; straszheimjeffrey (gmail)14 ;; Created 11 Feburary 200916 (ns clojure.contrib.datalog.tests.test17 (:use [clojure.test :only (run-tests)])18 (:gen-class))20 (def test-names [:test-util21 :test-database22 :test-literals23 :test-rules24 :test-magic25 :test-softstrat])27 (def test-namespaces28 (map #(symbol (str "clojure.contrib.datalog.tests." (name %)))29 test-names))31 (defn run32 "Runs all defined tests"33 []34 (println "Loading tests...")35 (apply require :reload-all test-namespaces)36 (apply run-tests test-namespaces))38 (defn -main39 "Run all defined tests from the command line"40 [& args]41 (run)42 (System/exit 0))45 ;; End of file