mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-24 09:31:29 +00:00
19 lines
275 B
Go
19 lines
275 B
Go
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)
|
|
}
|
|
}
|