mirror of
https://github.com/astaxie/beego.git
synced 2025-08-01 00:15:31 +00:00
improve the empty router
This commit is contained in:
@@ -149,7 +149,11 @@ func TestAddTree2(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestSplitPath(t *testing.T) {
|
||||
a := splitPath("/")
|
||||
a := splitPath("")
|
||||
if len(a) != 0 {
|
||||
t.Fatal("/ should retrun []")
|
||||
}
|
||||
a = splitPath("/")
|
||||
if len(a) != 0 {
|
||||
t.Fatal("/ should retrun []")
|
||||
}
|
||||
|
Reference in New Issue
Block a user