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 package main
import ( import (
"os"
"reflect" "reflect"
"testing" "testing"
) )
func TestIsRoot(t *testing.T) { func TestIsRoot(t *testing.T) {
if !isRoot("/") { sep := string(os.PathSeparator)
t.Errorf(`"/" is root`) if !isRoot(sep) {
t.Errorf(`"%s" is root`, sep)
} }
paths := []string{ paths := []string{