about summary refs log tree commit diff
path: root/route_test.go
diff options
context:
space:
mode:
authorFranck Cuny <franck@lumberjaph.net>2013-05-12 14:06:13 -0700
committerFranck Cuny <franck@lumberjaph.net>2013-05-12 14:06:13 -0700
commitd4eabf891ce67b01a6321a53115a3b360ebfc017 (patch)
treec8248919cc00d46c41c31ac21591de893d1efa4e /route_test.go
parentThe Match type implement an interface. (diff)
downloadpath-router-d4eabf891ce67b01a6321a53115a3b360ebfc017.tar.gz
Add GetPath and GetMethod to the Match object master
Diffstat (limited to 'route_test.go')
-rw-r--r--route_test.go6
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()))
 	}
 }