Skip to content

Commit

Permalink
Fix remaining ns name issues in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuart Sierra committed Feb 1, 2010
1 parent 2c07978 commit ac67da7
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/test/clojure/clojure/contrib/pprint/test_cl_format.clj
Expand Up @@ -16,7 +16,7 @@
(ns clojure.contrib.pprint.test-cl-format
(:refer-clojure :exclude [format])
(:use [clojure.test :only (deftest are run-tests)]
clojure.contrib.test-contrib.pprint.helper
clojure.contrib.pprint.test-helper
clojure.contrib.pprint))

(def format cl-format)
Expand Down
2 changes: 1 addition & 1 deletion src/test/clojure/clojure/contrib/pprint/test_helper.clj
Expand Up @@ -13,7 +13,7 @@

;; This is just a macro to make my tests a little cleaner

(ns clojure.contrib.contrib.pprint.test-helper
(ns clojure.contrib.pprint.test-helper
(:use [clojure.test :only (deftest are run-tests)]))

(defmacro simple-tests [name & test-pairs]
Expand Down
2 changes: 1 addition & 1 deletion src/test/clojure/clojure/contrib/pprint/test_pretty.clj
Expand Up @@ -13,7 +13,7 @@

(ns clojure.contrib.pprint.test-pretty
(:use [clojure.test :only (deftest are run-tests)]
clojure.contrib.test-contrib.pprint.helper
clojure.contrib.pprint.test-helper
clojure.contrib.pprint))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Expand Down
2 changes: 1 addition & 1 deletion src/test/clojure/clojure/contrib/test_macro_utils.clj
Expand Up @@ -20,7 +20,7 @@
:only (with-monad domonad)]))

(use-fixtures :each
(fn [f] (binding [*ns* (the-ns 'clojure.contrib.test-contrib.macro-utils)]
(fn [f] (binding [*ns* (the-ns 'clojure.contrib.test-macro-utils)]
(f))))

(deftest macrolet-test
Expand Down
14 changes: 7 additions & 7 deletions src/test/clojure/clojure/contrib/test_mock.clj
Expand Up @@ -57,19 +57,19 @@

(deftest test-has-matching-signature
(assert-called mock/no-matching-function-signature true
(mock/has-matching-signature? 'clojure.contrib.test-contrib.mock-test/fn2 [1]))
(mock/has-matching-signature? 'clojure.contrib.test-mock/fn2 [1]))
(assert-called mock/no-matching-function-signature true
(mock/has-matching-signature? 'clojure.contrib.test-contrib.mock-test/fn3 [1 3]))
(mock/has-matching-signature? 'clojure.contrib.test-mock/fn3 [1 3]))
(assert-called mock/no-matching-function-signature false
(mock/has-matching-signature? 'clojure.contrib.test-contrib.mock-test/fn3 [1 3 5]))
(mock/has-matching-signature? 'clojure.contrib.test-mock/fn3 [1 3 5]))
(assert-called mock/no-matching-function-signature false
(mock/has-matching-signature? 'clojure.contrib.test-contrib.mock-test/fn4 [1 3 5 7 9]))
(mock/has-matching-signature? 'clojure.contrib.test-mock/fn4 [1 3 5 7 9]))
(assert-called mock/no-matching-function-signature false
(mock/has-matching-signature? 'clojure.contrib.test-contrib.mock-test/fn4 [1 3]))
(mock/has-matching-signature? 'clojure.contrib.test-mock/fn4 [1 3]))
(assert-called mock/no-matching-function-signature true
(mock/has-matching-signature? 'clojure.contrib.test-contrib.mock-test/fn4 [1]))
(mock/has-matching-signature? 'clojure.contrib.test-mock/fn4 [1]))
(assert-called mock/no-matching-function-signature false
(mock/has-matching-signature? 'clojure.contrib.test-contrib.mock-test/deffed-differently [1])))
(mock/has-matching-signature? 'clojure.contrib.test-mock/deffed-differently [1])))


(deftest test-times
Expand Down
2 changes: 1 addition & 1 deletion src/test/clojure/clojure/contrib/test_trace.clj
@@ -1,6 +1,6 @@
(ns clojure.contrib.test-trace
(:use clojure.test
[clojure.contrib trace string]))
clojure.contrib.trace))

(deftrace call-myself [n]
(when-not (< n 1)
Expand Down

0 comments on commit ac67da7

Please sign in to comment.