Browse Source

Add a few more test cases for cowboy_req:match_qs

Loïc Hoguin 8 years ago
parent
commit
ed664345d7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      test/req_SUITE.erl

+ 2 - 0
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.