From 27290486f331a9b33ee42363d722f4e73d89c4e9 Mon Sep 17 00:00:00 2001 From: iku000888 Date: Thu, 19 Jan 2017 15:13:42 +0900 Subject: [PATCH] Add test for the override capability --- test/cemerick/test_url.cljx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/cemerick/test_url.cljx b/test/cemerick/test_url.cljx index fe2e6d1..88c76e9 100644 --- a/test/cemerick/test_url.cljx +++ b/test/cemerick/test_url.cljx @@ -13,7 +13,8 @@ "a=1&b=2&c=3" {:a 1 :b 2 :c 3} "a=1&b=2&c=3" {:a "1" :b "2" :c "3"} "a=1&b=2" {"a" "1" "b" "2"} - "a=" {"a" ""})) + "a=" {"a" ""} + "overridden=overridden" {:foo "bar" :override-encoder-fn (constantly "overridden")})) (deftest url-roundtripping (let [aurl (url "https://username:password@some.host.com/database?query=string")]