Added test for checking Index

This commit is contained in:
Héctor Hurtado
2019-10-08 16:18:51 +02:00
parent 4a258e74ce
commit 6df4369358
+4
View File
@@ -51,4 +51,8 @@ func TestAppendNewRouteFromRequest(t *testing.T) {
if respJsonRoute.Pattern != "/hello" {
t.Errorf("Pattern missmatch. Expected: %s, got: %s", "/hello", respJsonRoute.Pattern)
}
if respJsonRoute.Index > 0 {
t.Errorf("Index missmatch. Expected: %d, got: %d", 0, respJsonRoute.Index)
}
}