Xray-core/transport/internet/splithttp/config_test.go

19 lines
275 B
Go
Raw Normal View History

package splithttp_test
import (
"testing"
. "github.com/xtls/xray-core/transport/internet/splithttp"
)
func Test_GetNormalizedPath(t *testing.T) {
c := Config{
Path: "/?world",
}
path := c.GetNormalizedPath()
if path != "/" {
t.Error("Unexpected: ", path)
}
}