diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-01-12 18:06:35 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-01-12 18:06:35 +0100 |
commit | 46db900dab9c0e6fcd9d227f10a32fb24f5c8bd9 (patch) | |
tree | d3fd208f1fe36d791d92963ec653bc663012be5f /resource/resource_test.go | |
parent | 60c9f3b1c34b69771e25a66906f150f460d73223 (diff) |
resource: Implement Resources.ByPrefix
Fixes #4266
Diffstat (limited to 'resource/resource_test.go')
-rw-r--r-- | resource/resource_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/resource/resource_test.go b/resource/resource_test.go index fbc66af8f..73d98d62a 100644 --- a/resource/resource_test.go +++ b/resource/resource_test.go @@ -126,4 +126,7 @@ func TestResourcesGetByPrefix(t *testing.T) { assert.Equal("/foo1.css", resources.GetByPrefix("foo1").RelPermalink()) assert.Nil(resources.GetByPrefix("asdfasdf")) + assert.Equal(2, len(resources.ByPrefix("logo"))) + assert.Equal(1, len(resources.ByPrefix("logo2"))) + } |