diff options
author | Franck Cuny <franck@lumberjaph.net> | 2013-05-12 14:06:13 -0700 |
---|---|---|
committer | Franck Cuny <franck@lumberjaph.net> | 2013-05-12 14:06:13 -0700 |
commit | d4eabf891ce67b01a6321a53115a3b360ebfc017 (patch) | |
tree | c8248919cc00d46c41c31ac21591de893d1efa4e /route_test.go | |
parent | The Match type implement an interface. (diff) | |
download | path-router-d4eabf891ce67b01a6321a53115a3b360ebfc017.tar.gz |
Add GetPath and GetMethod to the Match object master
Diffstat (limited to 'route_test.go')
-rw-r--r-- | route_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
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())) } } |