Browse Source

Add a test case for cowboy_dispatcher:match/3.

Added it while debugging an issue, so why not keep it?
Loïc Hoguin 14 years ago
parent
commit
4048499af2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/cowboy_dispatcher.erl

+ 1 - 0
src/cowboy_dispatcher.erl

@@ -166,6 +166,7 @@ match_test_() ->
 			{ok, match_any_subdomain_users, [], []}},
 		{["www", "dev-extend", "eu"], ["users", "42", "mails"],
 			{ok, match_any, [], []}},
+		{["www", "dev-extend", "eu"], [], {ok, match_any, [], []}},
 		{["www", "any", "dev-extend", "eu"], ["not_users", "42", "mails"],
 			{error, notfound, path}},
 		{["dev-extend", "eu"], [], {ok, match_extend, [], []}},