Re: Differences in generator output for gen/fmap

2018-10-05 Thread Alexander Sedgwick
Nevermind, I see now the infinite loop I've generated.. I'll delete the post thanks! On Friday, October 5, 2018 at 1:49:12 PM UTC-5, Alexander Sedgwick wrote: > > I'm running into differences when having gen/fmap inside a s/with-gen vs > running it outside a s/with-gen

Differences in generator output for gen/fmap

2018-10-05 Thread Alexander Sedgwick
I'm running into differences when having gen/fmap inside a s/with-gen vs running it outside a s/with-gen. Am I missing something? ```clojure (ns scribble (:require [clojure.spec.alpha :as s] [clojure.spec.gen.alpha :as gen])) (s/def ::some-int (s/or :zero zero? :pos pos-i

Re: Spec: Nested Cat Calls

2017-05-18 Thread Alexander Sedgwick
11:34:10 PM UTC-5, Alexander Sedgwick wrote: >> >> I'm looking to better understand how nested cats work (now that just >> sounds funny). >> >> I've found that sometimes spec/cat will generate a nested list: >> >> ```clojure >> (gen/sample (s/gen

Spec: Nested Cat Calls

2017-05-16 Thread Alexander Sedgwick
I'm looking to better understand how nested cats work (now that just sounds funny). I've found that sometimes spec/cat will generate a nested list: ```clojure (gen/sample (s/gen (s/cat :start #{\a} :content (s/cat :nothing (s/? #{\^})