From 26974942686cb709ed0c17a704224c4cfc45fccb Mon Sep 17 00:00:00 2001 From: anatoly Date: Sat, 5 Dec 2015 23:00:13 -0500 Subject: [PATCH] swapping fun with values (deref vs. values) --- test/check/fun_with_values_test.clj | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/test/check/fun_with_values_test.clj b/test/check/fun_with_values_test.clj index 6f0a89f..6b30eae 100644 --- a/test/check/fun_with_values_test.clj +++ b/test/check/fun_with_values_test.clj @@ -43,19 +43,6 @@ (use-fixtures :each with-fun-and-values) (deftest fun-with-values - (is (= @scalar 42)) - (is (= (@fun) 42)) - (is (= @with-fun 42)) - (is (= (@with-partial 1) 42)) - (is (= (@f-in-f 1) 42)) - (is (= @f-no-args-value 42)) - (is (= (@f-no-args) 42)) - (is (= (@f-args 41 1) 42)) - (is (= (@private-f 1) 42)) - (is (= @f-value 42))) - -(deftest deref-fun-with-values - (mount/in-cljc-mode) (is (= scalar 42)) (is (= (fun) 42)) (is (= with-fun 42)) @@ -65,5 +52,18 @@ (is (= (f-no-args) 42)) (is (= (f-args 41 1) 42)) (is (= (private-f 1) 42)) - (is (= f-value 42)) + (is (= f-value 42))) + +(deftest deref-fun-with-values + (mount/in-cljc-mode) + (is (= @scalar 42)) + (is (= (@fun) 42)) + (is (= @with-fun 42)) + (is (= (@with-partial 1) 42)) + (is (= (@f-in-f 1) 42)) + (is (= @f-no-args-value 42)) + (is (= (@f-no-args) 42)) + (is (= (@f-args 41 1) 42)) + (is (= (@private-f 1) 42)) + (is (= @f-value 42)) (mount/in-clj-mode))