mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-16 05:00:24 +00:00
Move a router test from old_http_SUITE to cowboy_router
This commit is contained in:
parent
0254c80c33
commit
fb5a261614
2 changed files with 7 additions and 16 deletions
|
@ -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].
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue