shithub: hugo

Download patch

ref: 3616d16701d374af33c551fe56a1baeadeb50460
parent: 07f2ef9c5e1171934c5abb1001b821bdd946d768
author: spf13 <[email protected]>
date: Mon Nov 3 19:32:55 EST 2014

Better error messages for show_plan_test

--- a/hugolib/site_show_plan_test.go
+++ b/hugolib/site_show_plan_test.go
@@ -47,13 +47,13 @@
 
 	for _, x := range gotList {
 		if !stringInSlice(x, expectedList) {
-			t.Errorf("\nShowPlan expected:\n%q\ngot:\n%q", expected, got)
+			t.Errorf("%v %v %v %v", "\nShowPlan expected:\n", expected, "\ngot:\n", got)
 		}
 	}
 
 	for _, x := range expectedList {
 		if !stringInSlice(x, gotList) {
-			t.Errorf("\nShowPlan expected:\n%q\ngot:\n%q", expected, got)
+			t.Errorf("%v %v %v %v", "\nShowPlan expected:\n", expected, "\ngot:\n", got)
 		}
 	}
 }