From fb5a261614652e83d5c2b3a7e8bb0561ebc9a331 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 17 May 2018 17:53:16 +0200 Subject: Move a router test from old_http_SUITE to cowboy_router --- src/cowboy_router.erl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/cowboy_router.erl') diff --git a/src/cowboy_router.erl b/src/cowboy_router.erl index 92ecf25..754e3e7 100644 --- a/src/cowboy_router.erl +++ b/src/cowboy_router.erl @@ -434,7 +434,10 @@ compile_test_() -> {[<<"hats">>, <<"page">>, number], [], h, o}]}]}, {[{"[...]ninenines.eu", [{"/hats/[...]", h, o}]}], [{[<<"eu">>, <<"ninenines">>, '...'], [], [ - {[<<"hats">>, '...'], [], h, o}]}]} + {[<<"hats">>, '...'], [], h, o}]}]}, + %% Path segment containing a colon. + {[{'_', [{"/foo/bar:blah", h, o}]}], [{'_', [], [ + {[<<"foo">>, <<"bar:blah">>], [], h, o}]}]} ], [{lists:flatten(io_lib:format("~p", [Rt])), fun() -> Rs = compile(Rt) end} || {Rt, Rs} <- Tests]. -- cgit v1.2.3