Fix tests failing on Windows.

* ":" is kept when part of a drive.
  * Create tests.
  * Fix test framework.
This commit is contained in:
klauspost
2015-10-19 17:36:15 +01:00
committed by Nick Craig-Wood
parent 4e952af614
commit 16c9fba5de
3 changed files with 78 additions and 25 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ var (
file2 = fstest.Item{
ModTime: fstest.Time("2001-02-03T04:05:10.123123123Z"),
Path: `hello? sausage/êé/Hello, 世界/ " ' @ < > & ?/z.txt`,
WinPath: `hello_ sausage/êé/Hello, 世界/ _ ' @ _ _ _ _/z.txt`,
WinPath: `hello_ sausage/êé/Hello, 世界/ _ ' @ _ _ & _/z.txt`,
}
)