That's a complicated question, but the simplified answer is: test.check (which clojure.spec uses) generates random test cases. This is advantageous when the state space is very large, where tracking previous examples is hard and gives very little advantage. When the state space is small, there will be a lot of repeats.
(There is also a feature where it starts "small" and grows. This means that repeated examples are more likely at first.) I would definitely recommend unit testing if the state space is small enough to enumerate and fit in your head. -Jason On Mon, Apr 3, 2017 at 5:31 AM, Didier <didi...@gmail.com> wrote: > Do you know why they are not unique? Was that on purpose or an accidental > behaviour of the implementation? > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.