add vals collection + setval test, update changelog

This commit is contained in:
Nathan Marz 2016-06-22 21:17:02 -04:00
parent d1e32be13b
commit a8f48baced
2 changed files with 4 additions and 0 deletions

View file

@ -14,6 +14,7 @@
* Bug fix: multi-path and if-path now work properly with value collection * 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: 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: 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 ## 0.11.2
* Renamed com.rpl.specter.transient namespace to com.rpl.specter.transients to eliminate ClojureScript compiler warning about reserved keyword * Renamed com.rpl.specter.transient namespace to com.rpl.specter.transients to eliminate ClojureScript compiler warning about reserved keyword

View file

@ -1301,3 +1301,6 @@
(is (= [3 2 1] (keys (transform s/MAP-VALS inc amap)))) (is (= [3 2 1] (keys (transform s/MAP-VALS inc amap))))
(is (= [3 2 1] (keys (transform [s/ALL s/LAST] 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))))