@@ -113,12 +113,14 @@ func TestResourcesGetByPrefix(t *testing.T) {
113113 resources := Resources {
114114 spec .newGenericResource (nil , nil , "/public" , "/a/foo1.css" , "foo1.css" , "css" ),
115115 spec .newGenericResource (nil , nil , "/public" , "/a/logo1.png" , "logo1.png" , "image" ),
116- spec .newGenericResource (nil , nil , "/public" , "/b/logo2 .png" , "logo2 .png" , "image" ),
116+ spec .newGenericResource (nil , nil , "/public" , "/b/Logo2 .png" , "Logo2 .png" , "image" ),
117117 spec .newGenericResource (nil , nil , "/public" , "/b/foo2.css" , "foo2.css" , "css" ),
118118 spec .newGenericResource (nil , nil , "/public" , "/b/foo3.css" , "foo3.css" , "css" )}
119119
120120 assert .Nil (resources .GetByPrefix ("asdf" ))
121121 assert .Equal ("/logo1.png" , resources .GetByPrefix ("logo" ).RelPermalink ())
122+ assert .Equal ("/logo1.png" , resources .GetByPrefix ("loGo" ).RelPermalink ())
123+ assert .Equal ("/Logo2.png" , resources .GetByPrefix ("logo2" ).RelPermalink ())
122124 assert .Equal ("/foo2.css" , resources .GetByPrefix ("foo2" ).RelPermalink ())
123125 assert .Equal ("/foo1.css" , resources .GetByPrefix ("foo1" ).RelPermalink ())
124126 assert .Equal ("/foo1.css" , resources .GetByPrefix ("foo1" ).RelPermalink ())
0 commit comments