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))))