Minor fixes

This commit is contained in:
Simon Brooke 2018-06-29 18:41:29 +01:00
parent 1ccb368ab4
commit ff5a948063
2 changed files with 40 additions and 7 deletions

View file

@ -19,4 +19,8 @@
(let [expected {:name "simon" :id 1}
actual (query-string-to-map "id=1&name=simon")]
(is (= expected actual) "One string value, one integer. Order of pairs might be reversed, and that's OK"))
(let [expected {:address_id_expanded "AIRDS"}
actual (query-string-to-map "id=&address_id_expanded=AIRDS&sub-address=")]
(is (= expected actual) "Yeys with no values should not be included in the map"))
))