Codebase list test-check-clojure / f3d9a96
Fix occasionally-failing test The assertion that shrinking reduces the sum of elements is only true if the collection doesn't have zeros. Gary Fredericks 8 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
384384 (prop/for-all [g gen-distinct-generator
385385 seed gen-seed
386386 size (gen/choose 1 20)]
387 (let [rose-tree (gen/call-gen (g (gen/choose 0 1000))
387 (let [rose-tree (gen/call-gen (g (gen/choose 1 1000))
388388 (random/make-random seed) size)
389389 a-shrink (->> rose-tree
390390 (iterate #(first (rose/children %)))