Skip to content
Browse files

Added test for malformed number loads

  • Loading branch information...
1 parent f7198b1 commit da52a230a9604466a8617cfbcd75909d3ebcb9ff @alexgartrell committed Apr 17, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/tnetstrings/test/core.clj
View
4 test/tnetstrings/test/core.clj
@@ -42,7 +42,9 @@
(is (= :INVALID (loads "6:3:foo!]")))
(is (= :INVALID (loads "10:1:1#3:foo!]")))
(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
(is (= :SHORTCOUNT (loads "10:aaaaaaaaaa")))

0 comments on commit da52a23

Please sign in to comment.
Something went wrong with that request. Please try again.