Permalink
Browse files

remove tests that cannot be loaded and prevent walk of test directory

Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
  • Loading branch information...
1 parent d15a1f0 commit ba3bf839777484919f382520a73eb2e3f556204e @stuarthalloway stuarthalloway committed Aug 22, 2012
@@ -1,38 +0,0 @@
-; Copyright (c) Rich Hickey. All rights reserved.
-; The use and distribution terms for this software are covered by the
-; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
-; which can be found in the file epl-v10.html 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.
-
-(ns clojure.test-clojure.load
- (:use clojure.test))
-
-(deftest test-load
- (testing "Should ignore self-loads without comment"
- (is (nil? (require 'clojure.test-clojure.load.cyclic0))))
- (testing "Should reject cyclic dependencies"
- (testing "a->b->a"
- (is (thrown-with-msg? Exception #".*Cyclic load dependency.*"
- (require 'clojure.test-clojure.load.cyclic1))))
- (testing "a->b->c->d->b"
- (is (thrown-with-msg? Exception #".*Cyclic load dependency.*"
- (require 'clojure.test-clojure.load.cyclic3))))))
-
-(deftest test-load-lib
- (testing "Shouldn't leak failed namespace"
- (try (require 'clojure.test-clojure.load.invalid)
- (catch Exception _))
- (is (nil? (find-ns 'clojure.test-clojure.load.invalid)))))
-
-(deftest test-require-refer
- (try
- (binding [*ns* *ns*]
- (ns clojure.test-clojure.require-scratch
- (:require [clojure.set :refer [difference]]
- [clojure.walk :refer :all]))
- (is (fn? (eval 'difference)))
- (is (every? fn? (map eval '[postwalk-replace prewalk-replace walk]))))
- (finally
- (remove-ns 'clojure.test-clojure.require-scratch))))
@@ -1,12 +0,0 @@
-; Copyright (c) Rich Hickey. All rights reserved.
-; The use and distribution terms for this software are covered by the
-; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
-; which can be found in the file epl-v10.html 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.
-;
-; Author: Stephen C. Gilardi
-
-(ns clojure.test-clojure.load.cyclic0
- (:require clojure.test-clojure.load.cyclic0))
@@ -1,12 +0,0 @@
-; Copyright (c) Rich Hickey. All rights reserved.
-; The use and distribution terms for this software are covered by the
-; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
-; which can be found in the file epl-v10.html 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.
-;
-; Author: Stephen C. Gilardi
-
-(ns clojure.test-clojure.load.cyclic1
- (:require clojure.test-clojure.load.cyclic2))
@@ -1,12 +0,0 @@
-; Copyright (c) Rich Hickey. All rights reserved.
-; The use and distribution terms for this software are covered by the
-; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
-; which can be found in the file epl-v10.html 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.
-;
-; Author: Stephen C. Gilardi
-
-(ns clojure.test-clojure.load.cyclic2
- (:require clojure.test-clojure.load.cyclic1))
@@ -1,12 +0,0 @@
-; Copyright (c) Rich Hickey. All rights reserved.
-; The use and distribution terms for this software are covered by the
-; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
-; which can be found in the file epl-v10.html 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.
-;
-; Author: Stephen C. Gilardi
-
-(ns clojure.test-clojure.load.cyclic3
- (:require clojure.test-clojure.load.cyclic4))
@@ -1,12 +0,0 @@
-; Copyright (c) Rich Hickey. All rights reserved.
-; The use and distribution terms for this software are covered by the
-; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
-; which can be found in the file epl-v10.html 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.
-;
-; Author: Stephen C. Gilardi
-
-(ns clojure.test-clojure.load.cyclic4
- (:require clojure.test-clojure.load.cyclic5))
@@ -1,12 +0,0 @@
-; Copyright (c) Rich Hickey. All rights reserved.
-; The use and distribution terms for this software are covered by the
-; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
-; which can be found in the file epl-v10.html 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.
-;
-; Author: Stephen C. Gilardi
-
-(ns clojure.test-clojure.load.cyclic5
- (:require clojure.test-clojure.load.cyclic6))
@@ -1,12 +0,0 @@
-; Copyright (c) Rich Hickey. All rights reserved.
-; The use and distribution terms for this software are covered by the
-; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
-; which can be found in the file epl-v10.html 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.
-;
-; Author: Stephen C. Gilardi
-
-(ns clojure.test-clojure.load.cyclic6
- (:require clojure.test-clojure.load.cyclic4))
@@ -1,11 +0,0 @@
-; Copyright (c) Rich Hickey. All rights reserved.
-; The use and distribution terms for this software are covered by the
-; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
-; which can be found in the file epl-v10.html 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.
-
-(ns clojure.test-clojure.load.invalid)
-
-(this isn't valid code)

0 comments on commit ba3bf83

Please sign in to comment.