aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugofs/glob_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugofs/glob_test.go')
-rw-r--r--hugofs/glob_test.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/hugofs/glob_test.go b/hugofs/glob_test.go
index 29cd1e0ca..fbb276445 100644
--- a/hugofs/glob_test.go
+++ b/hugofs/glob_test.go
@@ -49,12 +49,17 @@ func TestGlob(t *testing.T) {
create("jsonfiles/sub/d3.json")
create("jsonfiles/d1.xml")
create("a/b/c/e/f.json")
+ create("UPPER/sub/style.css")
+ create("root/UPPER/sub/style.css")
c.Assert(collect("**.json"), qt.HasLen, 5)
- c.Assert(collect("**"), qt.HasLen, 6)
+ c.Assert(collect("**"), qt.HasLen, 8)
c.Assert(collect(""), qt.HasLen, 0)
c.Assert(collect("jsonfiles/*.json"), qt.HasLen, 2)
c.Assert(collect("*.json"), qt.HasLen, 1)
c.Assert(collect("**.xml"), qt.HasLen, 1)
c.Assert(collect(filepath.FromSlash("/jsonfiles/*.json")), qt.HasLen, 2)
+ c.Assert(collect("UPPER/sub/style.css"), qt.HasLen, 1)
+ c.Assert(collect("root/UPPER/sub/style.css"), qt.HasLen, 1)
+
}