Keep reference algorithms in tests
This commit is contained in:
@@ -155,18 +155,6 @@ func pathIndexSpellingEqual(index int, token string) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func pathSpellingEqual(left, right Path) bool {
|
||||
if len(left.segments) != len(right.segments) {
|
||||
return false
|
||||
}
|
||||
for i, segment := range left.segments {
|
||||
if !pathTokenSpellingEqual(segment, right.segments[i]) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
func escapePathToken(token string) string {
|
||||
token = strings.ReplaceAll(token, "~", "~0")
|
||||
return strings.ReplaceAll(token, "/", "~1")
|
||||
|
||||
Reference in New Issue
Block a user