aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGabriel Giovanini <gabrielg.desouza@gmail.com>2019-06-22 15:49:29 +0200
committerGabriel Giovanini <gabrielg.desouza@gmail.com>2019-06-22 15:49:29 +0200
commit742949d52eed9e79c70dc04a2082e72ff3ba757c (patch)
treebfd91096c37ac7905ea8d3b4ed5a234975e30234 /test
parent3e4ca69baa068d9626d1293c75507073f7b38221 (diff)
downloadgenpass-742949d52eed9e79c70dc04a2082e72ff3ba757c.tar.gz
genpass-742949d52eed9e79c70dc04a2082e72ff3ba757c.tar.bz2
genpass-742949d52eed9e79c70dc04a2082e72ff3ba757c.zip
Fixes regex
Diffstat (limited to 'test')
-rw-r--r--test/genpass/gen_test.clj5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/genpass/gen_test.clj b/test/genpass/gen_test.clj
index 05d8994..3bc62e1 100644
--- a/test/genpass/gen_test.clj
+++ b/test/genpass/gen_test.clj
@@ -2,7 +2,7 @@
(:require [clojure.test :refer :all]
[genpass.gen :refer :all]))
-(def valid-char-regex #"^[a-zA-Z0-1\!\@\#\%\^\&\*\(\)\{\}\[\]\-\+\=\~]*$")
+(def valid-char-regex #"^[a-zA-Z0-9\!\@\#\%\^\&\*\(\)\{\}\[\]\-\+\=\~]*$")
(def not-nil? (complement nil?))
(deftest rand-char-test
@@ -23,5 +23,4 @@
(is (not-nil? (re-matches valid-char-regex (genpwd))))
(is (not-nil? (re-matches valid-char-regex (genpwd 1))))
(is (not-nil? (re-matches valid-char-regex (genpwd 1000))))
- (is (not-nil? (re-matches valid-char-regex (genpwd 4))))
- )) \ No newline at end of file
+ (is (not-nil? (re-matches valid-char-regex (genpwd 4)))))) \ No newline at end of file