shithub: hugo

Download patch

ref: 8d0917af0ab257994fc923eaef20453f5f1b580b
parent: 718c0e14146c817401ca888ffae91a6603935457
author: Bjørn Erik Pedersen <[email protected]>
date: Thu Apr 27 09:00:24 EDT 2017

hubolib: Narrow a test assertion

--- a/hugolib/page_paths_test.go
+++ b/hugolib/page_paths_test.go
@@ -149,7 +149,7 @@
 						expected := test.expected
 
 						// TODO(bep) simplify
-						if test.d.BaseName == test.d.Type.BaseName {
+						if test.d.Kind == KindPage && test.d.BaseName == test.d.Type.BaseName {
 
 						} else if test.d.Kind == KindHome && test.d.Type.Path != "" {
 						} else if (!strings.HasPrefix(expected, "/index") || test.d.Addends != "") && test.d.URL == "" && isUgly {