shithub: hugo

Download patch

ref: be15b07733a41501f7a3f38d59579a7f4c8ddc22
parent: bee1358e4838b40042963cc41a9d63a395b6541e
author: bep <[email protected]>
date: Wed Apr 29 15:21:57 EDT 2015

Fix typo in test

--- a/hugolib/shortcode_test.go
+++ b/hugolib/shortcode_test.go
@@ -274,7 +274,7 @@
 		}
 
 		if this.expectShortCodes != "" {
-			shortCodesAsStr := fmt.Sprintf("map%q", collectAndShortShortcodes(shortCodes))
+			shortCodesAsStr := fmt.Sprintf("map%q", collectAndSortShortcodes(shortCodes))
 			if !strings.Contains(shortCodesAsStr, this.expectShortCodes) {
 				t.Fatalf("[%d] %s: Short codes not as expected, got %s - expected to contain %s", i, this.name, shortCodesAsStr, this.expectShortCodes)
 			}
@@ -282,7 +282,7 @@
 	}
 }
 
-func collectAndShortShortcodes(shortcodes map[string]shortcode) []string {
+func collectAndSortShortcodes(shortcodes map[string]shortcode) []string {
 	var asArray []string
 
 	for key, sc := range shortcodes {