Skip to content

Commit

Permalink
Release 0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
wotbrew committed Sep 1, 2020
1 parent 3a298ca commit 8797710
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.1.3

- Fixed .cons with maps in sequences of entries using the key as the value!

## 0.1.2

- Fixed .cons with map entries in clj using the key as the value!
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ indexed-vector

## Latest version

lein `[com.wotbrew/idx "0.1.2"]` or deps `com.wotbrew/idx {:mvn/version "0.1.2"}`.
lein `[com.wotbrew/idx "0.1.3"]` or deps `com.wotbrew/idx {:mvn/version "0.1.3"}`.

## Features

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.wotbrew</groupId>
<artifactId>idx</artifactId>
<version>0.1.2</version>
<version>0.1.3</version>
<name>idx</name>
<dependencies>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion src/com/wotbrew/idx/impl/map.clj
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
:else
(reduce
(fn [^IPersistentMap this ^Map$Entry e]
(.assoc this (.getKey e) (.getKey e)))
(.assoc this (.getKey e) (.getValue e)))
this
o)))
(empty [this] (IndexedPersistentMap. (.empty ^IPersistentCollection m) nil nil nil auto))
Expand Down
3 changes: 3 additions & 0 deletions test/com/wotbrew/idx_test.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@
(deftest conj-on-map-entry-test
(is (= {42 43} (conj (auto {}) (first {42 43})))))

(deftest conj-on-seq-of-entries-test
(is (= {42 43, 43 45} (conj (auto {}) (seq {42 43, 43 45})))))

;; properties

(def index-pair
Expand Down

0 comments on commit 8797710

Please sign in to comment.