Skip to content

Commit

Permalink
Update core_test.clj
Browse files Browse the repository at this point in the history
Basic tests for unid fn
  • Loading branch information
verberktstan authored Jan 27, 2024
1 parent 4c19e52 commit 2a02952
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/swark/core_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@
nil " "
nil nil))

(t/deftest unid
(t/is (string? (sut/unid)))
(t/is (-> #{"a" "b"} sut/unid count #{3}))
(t/is (-> (reduce #(unid %1) #{} (range 99)) count #{99})))

(t/deftest ->keyword
(t/are [result match replacement input] (= result (sut/->keyword match replacement input))
:test nil nil :test
Expand Down

0 comments on commit 2a02952

Please sign in to comment.