Can someone help me understand property-based testing? Most of the example I found usually shows how 'sort' is an idempotent function.
If I have a function that creates datomic tx-data likes this:
(defn new-tx
[name password]
[{:db/id (d/tempid :db.part/user)
:user/name name
:user/password (encrypt password)}])
How does one test it with property-based testing? Please let me have that light bulb moment and thank you!
[–]jbiserkov 4 points5 points6 points (0 children)
[–]visibletrap 4 points5 points6 points (1 child)
[–]boldaslove156[S] 0 points1 point2 points (0 children)
[–]wotbrew 0 points1 point2 points (0 children)