Skip to content

Instantly share code, notes, and snippets.

@slipset
Created December 16, 2014 09:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slipset/0c870ea9261d4d8a0289 to your computer and use it in GitHub Desktop.
Save slipset/0c870ea9261d4d8a0289 to your computer and use it in GitHub Desktop.
(ns cljs.core-test-generative
(:require [clojure.test.check :as tc]
[clojure.test.check.generators :as gen]
[clojure.test.check.properties :as prop]))
(def samples 100)
(def shuffle-prop
(prop/for-all [v (gen/such-that not-empty (gen/vector gen/any))]
(seq (shuffle v))))
(tc/quick-check 100 shuffle-prop)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment