fix TestIsRoot on windows
This commit is contained in:
parent
92e8a247b1
commit
85c73978fe
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user