From a8f48baced6a914d07ec5af252b24e4c8673cfef Mon Sep 17 00:00:00 2001 From: Nathan Marz Date: Wed, 22 Jun 2016 21:17:02 -0400 Subject: [PATCH] add vals collection + setval test, update changelog --- CHANGES.md | 1 + test/com/rpl/specter/core_test.cljx | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 7ea646a..cf65e4a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -14,6 +14,7 @@ * Bug fix: multi-path and if-path now work properly with value collection * Bug fix: END, BEGINNING, FIRST, LAST, and MAP-VALS now work properly on nil * Bug fix: ALL and MAP-VALS now maintain the comparator of sorted maps +* Bug fix: Using value collection along with `setval` no longer throws exception ## 0.11.2 * Renamed com.rpl.specter.transient namespace to com.rpl.specter.transients to eliminate ClojureScript compiler warning about reserved keyword diff --git a/test/com/rpl/specter/core_test.cljx b/test/com/rpl/specter/core_test.cljx index fe82058..dd9c344 100644 --- a/test/com/rpl/specter/core_test.cljx +++ b/test/com/rpl/specter/core_test.cljx @@ -1301,3 +1301,6 @@ (is (= [3 2 1] (keys (transform s/MAP-VALS inc amap)))) (is (= [3 2 1] (keys (transform [s/ALL s/LAST] inc amap)))) )) + +(deftest setval-vals-collection-test + (is (= 2 (setval s/VAL 2 :a))))