@@ -75,7 +75,7 @@ Represents a value which belongs to a set of pre-defined values.
7575
7676### And / Or
7777
78- Data model used for validation using conjunction or disjunctions of
78+ Data model used for validation using conjunctions or disjunctions of
7979other logical predicates.
8080
8181``` clojure
@@ -85,9 +85,10 @@ other logical predicates.
8585```
8686
8787Those models are not supported by Minimallist's generator. If you want to use it
88- outside of a ` :condition-model ` field, you need to add your own generator to their nodes
88+ outside of a ` :condition-model ` field, you need to add your own generator to their nodes.
8989
9090``` clojure
91+ ; ; Minimallist's generator can use this model to generate data.
9192(-> (h/or (h/fn #(<= 0 % 9 ))
9293 (h/val 42 ))
9394 (h/with-test-check-gen (tcg/one-of [(tcg/choose 0 9 )
@@ -103,21 +104,21 @@ outside of a `:condition-model` field, you need to add your own generator to the
103104(h/set-of (fn keyword?))
104105
105106; ; Persons by name.
106- (h/map-of (fn/ string? ) (ref 'person))
107+ (h/map-of (h/fn string?) (ref 'person))
107108
108109; ; Sequence of numbers, either in a list or in a vector.
109- (h/sequence-of (fn/ int? ))
110+ (h/sequence-of (h/fn int?))
110111```
111112
112113` list-of ` and ` vector-of ` are shortcuts to define at the same time a ` :sequence-of ` node
113114with a ` :coll-type ` set to ` :list ` or ` :vector ` .
114115
115116``` clojure
116117; ; A list of numbers.
117- (h/list-of (fn/ int? ))
118+ (h/list-of (h/fn int?))
118119
119120; ; A vector of numbers.
120- (h/sequence-of (fn/ int? ))
121+ (h/sequence-of (h/fn int?))
121122```
122123
123124### Collections with entries
0 commit comments