This commit is contained in:
mike-thompson-day8 2015-04-25 09:37:22 +10:00
parent c2a9a041eb
commit 903cd76cc3
1 changed files with 1 additions and 1 deletions

View File

@ -37,5 +37,5 @@
wrapped (mid-ware set-a)] ;; wrapped middleware
(is (= (wrapped {:a 0 :b 2} 0) ;; no change in 'a'
{:a 0 :b 2}))
(is (= ({:a 4 :b 2} 0) ;; 'a' changed to 0
(is (= (wrapped {:a 4 :b 2} 0) ;; 'a' changed to 0
{:c 2 :a 0 :b 2})))) ;; 'c' is a + b