aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-01-02 14:56:20 +0100
committerLoïc Hoguin <[email protected]>2017-01-02 14:56:20 +0100
commited664345d7c65922269bd89d70babffc97d9e095 (patch)
tree9c8c2c002ff8ab7404a56165e752b6c11d9e76f1 /test
parent271e31c629be2dff93d68e01c9a8a9c5c34b7e2c (diff)
downloadcowboy-ed664345d7c65922269bd89d70babffc97d9e095.tar.gz
cowboy-ed664345d7c65922269bd89d70babffc97d9e095.tar.bz2
cowboy-ed664345d7c65922269bd89d70babffc97d9e095.zip
Add a few more test cases for cowboy_req:match_qs
Diffstat (limited to 'test')
-rw-r--r--test/req_SUITE.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/req_SUITE.erl b/test/req_SUITE.erl
index b0aabad..9ea08b3 100644
--- a/test/req_SUITE.erl
+++ b/test/req_SUITE.erl
@@ -161,6 +161,8 @@ match_qs(Config) ->
<<"#{a => <<\"b\">>}">> = do_get_body("/match/qs/a?a=b&c=d", Config),
<<"#{c => <<\"d\">>}">> = do_get_body("/match/qs/c?a=b&c=d", Config),
<<"#{a => <<\"b\">>,c => <<\"d\">>}">> = do_get_body("/match/qs/a/c?a=b&c=d", Config),
+ <<"#{a => <<\"b\">>,c => true}">> = do_get_body("/match/qs/a/c?a=b&c", Config),
+ <<"#{a => true,c => <<\"d\">>}">> = do_get_body("/match/qs/a/c?a&c=d", Config),
%% This function is tested more extensively through unit tests.
ok.