tags or categories for tests?

2017-08-20 Thread Rob Nikander
Hi, The lein command `lein help test` explains that you can add metadata to tests and select subsets of tests to run. Is there a way to do something like that from the REPL (clojure.test/run-tests) without lein? Rob -- You received this message because you are subscribed to the Google Groups

spec'ing relationship of values in a sequence?

2017-08-20 Thread Mark
What's the 'right' way to spec relationship between values in a sequence? For example, the following spec defines a sequence of number in increasing order: > > > > (s/conform (s/and (s/coll-of number?) > #(->> % > (partition 2 1) >

Re: spec'ing relationship of values in a sequence?

2017-08-20 Thread Ghadi Shayban
You have the right idea with s/and. I would name & defn the predicate to something meaningful like increasing?. Defining and thus naming it is essential so that you can get reuse, and also so that consumers of your spec, whether it's you or someone else, don't have to interpret the code in th

Re: Did something change in future

2017-08-20 Thread Alan Moore
Cecil, Welcome back! I remember your name from prior posts. Hope it goes well for you. The tooling has improved substantially and a lot of the rough edges have been sanded down, especially for ClojureScript which has undergone huge improvements. Clojure (and ClojureScript) FTW! Alan -- You r