Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
frenchy64 committed Nov 13, 2024
1 parent ee53a1a commit 33915cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/malli/generator_test.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,10 @@
(<= (int \A) i (int \Z))
(<= (int \0) i (int \9)))))

(deftest alphanumeric-char?-test
(is (alphanumeric-char? \a))
(is (not (alphanumeric-char? \-))))

(defn alphanumeric-string? [s]
{:pre [(string? s)]}
(every? alphanumeric-char? s))
Expand Down

0 comments on commit 33915cb

Please sign in to comment.