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