File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11(ns minimallist.generator-test
22 (:require [clojure.test :refer [deftest testing is are]]
33 [clojure.test.check.generators :as tcg]
4+ [clojure.string :as str]
45 [minimallist.core :refer [valid?]]
56 [minimallist.helper :as h]
67 [minimallist.util :as util]
7- [minimallist.generator :as mg :refer [gen fn-any? fn-int? fn-string?]]))
8+ [minimallist.generator :as mg :refer [gen fn-any? fn-int? fn-string? fn-keyword? ]]))
89
910(defn- path-test-visitor []
1011 ; ; Testing using side effects.
291292 tcg/sample))))
292293
293294(comment
294- ; ; Nothing replaces occasional hand testing
295+ ; ; For occasional hand testing
295296
296- (tcg/sample (gen (-> (h/set )
297+ (tcg/sample (gen (-> (h/set-of fn-any? )
297298 (h/with-count (h/enum #{1 2 3 10 }))
298299 (h/with-condition (h/fn (comp #{1 2 3 } count))))))
299300
322323 (or (empty? coll)
323324 (some even? coll))))))))
324325
325- (tcg/sample (gen (-> (h/set-of ( h/fn any?) )
326+ (tcg/sample (gen (-> (h/set-of fn- any?)
326327 (h/with-count (h/enum #{1 2 3 10 }))
327328 (h/with-condition (h/fn (comp #{1 2 3 } count))))))
328329
You can’t perform that action at this time.
0 commit comments