swapping fun with values (deref vs. values)
This commit is contained in:
parent
3d95aa9fc6
commit
2697494268
1 changed files with 14 additions and 14 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue