(t *testing.T)
| 588 | } |
| 589 | |
| 590 | func TestVariableNames(t *testing.T) { |
| 591 | route := new(Route).Host("{arg1}.domain.com").Path("/{arg1}/{arg2:[0-9]+}") |
| 592 | if route.err == nil { |
| 593 | t.Errorf("Expected error for duplicated variable names") |
| 594 | } |
| 595 | } |
| 596 | |
| 597 | func TestRedirectSlash(t *testing.T) { |
| 598 | var route *Route |