Skip to content

Commit 2b2d0cd

Browse files
committed
Code cleanup.
1 parent 5ccdba4 commit 2b2d0cd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test/minimallist/generator_test.cljc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
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.
@@ -291,9 +292,9 @@
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

@@ -322,7 +323,7 @@
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

0 commit comments

Comments
 (0)