fix TestIsRoot on windows

This commit is contained in:
Gokcehan 2022-01-22 15:00:55 +03:00
parent 92e8a247b1
commit 85c73978fe

View File

@ -1,13 +1,15 @@
package main
import (
"os"
"reflect"
"testing"
)
func TestIsRoot(t *testing.T) {
if !isRoot("/") {
t.Errorf(`"/" is root`)
sep := string(os.PathSeparator)
if !isRoot(sep) {
t.Errorf(`"%s" is root`, sep)
}
paths := []string{