From d4eabf891ce67b01a6321a53115a3b360ebfc017 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 12 May 2013 14:06:13 -0700 Subject: Add GetPath and GetMethod to the Match object --- route_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'route_test.go') diff --git a/route_test.go b/route_test.go index dd38e80..339a797 100644 --- a/route_test.go +++ b/route_test.go @@ -103,7 +103,7 @@ func TestMatch(t *testing.T) { if m == nil { t.Fatal() } else { - fmt.Println(fmt.Sprintf("%s match for %s", p.Path, m.Path)) + fmt.Println(fmt.Sprintf("%s match for %s", p.Path, m.GetPath())) } } } @@ -140,7 +140,7 @@ func TestMatchOptional(t *testing.T) { if m == nil { t.Fatal() } else { - fmt.Println(fmt.Sprintf("%s match for %s", p.Path, m.Path)) + fmt.Println(fmt.Sprintf("%s match for %s", p.Path, m.GetPath())) } } } @@ -162,7 +162,7 @@ func TestAmbigiousSimple(t *testing.T) { if m == nil { t.Fatal() } else { - fmt.Println(fmt.Sprintf("%s match for %s", r.URL.Path, m.Path)) + fmt.Println(fmt.Sprintf("%s match for %s", r.URL.Path, m.GetPath())) } } -- cgit 1.4.1