From ed664345d7c65922269bd89d70babffc97d9e095 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 2 Jan 2017 14:56:20 +0100 Subject: Add a few more test cases for cowboy_req:match_qs --- test/req_SUITE.erl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/req_SUITE.erl') 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. -- cgit v1.2.3