mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-09 19:47:02 +02:00
6
cache/filecache/filecache_test.go
vendored
6
cache/filecache/filecache_test.go
vendored
@@ -209,3 +209,9 @@ dir = "/cache/c"
|
||||
}
|
||||
wg.Wait()
|
||||
}
|
||||
|
||||
func TestCleanID(t *testing.T) {
|
||||
assert := require.New(t)
|
||||
assert.Equal(filepath.FromSlash("a/b/c.txt"), cleanID(filepath.FromSlash("/a/b//c.txt")))
|
||||
assert.Equal(filepath.FromSlash("a/b/c.txt"), cleanID(filepath.FromSlash("a/b//c.txt")))
|
||||
}
|
||||
|
Reference in New Issue
Block a user