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
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
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
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/? #{\^})