taoensso / truss

Assertions micro-library for Clojure/Script
https://www.taoensso.com/truss
Eclipse Public License 1.0
302 stars 14 forks source link

Assertion in set and list returns a vector #9

Closed Rovanion closed 5 years ago

Rovanion commented 7 years ago

It seems like assertions that something :in X always return a vector:

(truss/have integer? :in [1 2 3])     ; => [1 2 3]
(truss/have integer? :in '(1 2 3))    ; => [1 2 3]
(truss/have integer? :in #{1 2 3})    ; => [1 3 2]

I'd expect to have returned the same data as I passed in case the assert was successful.

ptaoussanis commented 5 years ago

Hi Rovanion, good idea- will make this change shortly. Thanks! 👍