|
@@ -11,7 +11,7 @@ import (
|
|
func TestCheckSystemDriveAndRemoveDriveLetter(t *testing.T) {
|
|
func TestCheckSystemDriveAndRemoveDriveLetter(t *testing.T) {
|
|
// Fails if not C drive.
|
|
// Fails if not C drive.
|
|
_, err := CheckSystemDriveAndRemoveDriveLetter(`d:\`)
|
|
_, err := CheckSystemDriveAndRemoveDriveLetter(`d:\`)
|
|
- if err == nil || err.Error() != "The specified path is not on the system drive (C:)" {
|
|
|
|
|
|
+ if err == nil || err.Error() != "the specified path is not on the system drive (C:)" {
|
|
t.Fatalf("Expected error for d:")
|
|
t.Fatalf("Expected error for d:")
|
|
}
|
|
}
|
|
|
|
|
|
@@ -68,7 +68,7 @@ func TestCheckSystemDriveAndRemoveDriveLetter(t *testing.T) {
|
|
if path, err = CheckSystemDriveAndRemoveDriveLetter(`c:`); err == nil {
|
|
if path, err = CheckSystemDriveAndRemoveDriveLetter(`c:`); err == nil {
|
|
t.Fatalf("c: should fail")
|
|
t.Fatalf("c: should fail")
|
|
}
|
|
}
|
|
- if err.Error() != `No relative path specified in "c:"` {
|
|
|
|
|
|
+ if err.Error() != `no relative path specified in "c:"` {
|
|
t.Fatalf(path, err)
|
|
t.Fatalf(path, err)
|
|
}
|
|
}
|
|
|
|
|
|
@@ -76,7 +76,7 @@ func TestCheckSystemDriveAndRemoveDriveLetter(t *testing.T) {
|
|
if path, err = CheckSystemDriveAndRemoveDriveLetter(`d:`); err == nil {
|
|
if path, err = CheckSystemDriveAndRemoveDriveLetter(`d:`); err == nil {
|
|
t.Fatalf("c: should fail")
|
|
t.Fatalf("c: should fail")
|
|
}
|
|
}
|
|
- if err.Error() != `No relative path specified in "d:"` {
|
|
|
|
|
|
+ if err.Error() != `no relative path specified in "d:"` {
|
|
t.Fatalf(path, err)
|
|
t.Fatalf(path, err)
|
|
}
|
|
}
|
|
}
|
|
}
|