mirror of
https://github.com/gohugoio/hugo.git
synced 2025-02-05 15:30:54 +00:00
Better error messages for show_plan_test
This commit is contained in:
parent
07f2ef9c5e
commit
3616d16701
1 changed files with 2 additions and 2 deletions
|
@ -47,13 +47,13 @@ func checkShowPlanExpected(t *testing.T, s *Site, expected string) {
|
||||||
|
|
||||||
for _, x := range gotList {
|
for _, x := range gotList {
|
||||||
if !stringInSlice(x, expectedList) {
|
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 {
|
for _, x := range expectedList {
|
||||||
if !stringInSlice(x, gotList) {
|
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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue