Skip to content
This repository has been archived by the owner on Jan 3, 2022. It is now read-only.

Commit

Permalink
Added test for malformed number loads
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgartrell committed Apr 18, 2011
1 parent f7198b1 commit da52a23
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/tnetstrings/test/core.clj
Expand Up @@ -42,7 +42,9 @@
(is (= :INVALID (loads "6:3:foo!]"))) (is (= :INVALID (loads "6:3:foo!]")))
(is (= :INVALID (loads "10:1:1#3:foo!]"))) (is (= :INVALID (loads "10:1:1#3:foo!]")))
(is (= :INVALID (loads "4:10:aa]"))) (is (= :INVALID (loads "4:10:aa]")))
(is (= :INVALID (loads "foo:")))) (is (= :INVALID (loads "foo:")))
(is (= :INVALID (loads "3:foo#")))
(is (= :INVALID (loads "6:3:foo#]"))))


(deftest shortcount-loads (deftest shortcount-loads
(is (= :SHORTCOUNT (loads "10:aaaaaaaaaa"))) (is (= :SHORTCOUNT (loads "10:aaaaaaaaaa")))
Expand Down

0 comments on commit da52a23

Please sign in to comment.