Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add empty list spec
  • Loading branch information
mattyoho committed Aug 4, 2012
1 parent 449eaed commit 39b8573
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/tnetstring/core_test.clj
Expand Up @@ -24,6 +24,8 @@
(is (thrown? IllegalArgumentException (parse "1:n~")))))

(deftest parse-list
(testing "Parsing an empty list"
(is (= [[] ""] (parse "0:]"))))
(testing "Parsing a list of elements"
(is (= [[12345 67890 "xxxxx"] ""] (parse "24:5:12345#5:67890#5:xxxxx,]")))))

Expand Down

0 comments on commit 39b8573

Please sign in to comment.