improve output, output all fails on CI

This commit is contained in:
Duke 2015-04-14 01:19:33 -03:00
parent 72ae645803
commit 715739b747

View File

@ -52,9 +52,9 @@ func checkAlphabeticOrder(t *testing.T, s *goquery.Selection) {
sort.Strings(sorted)
for k, item := range items {
log.Println("Current: ", item, "=> ", sorted[k])
if item != sorted[k] {
t.Fatalf("expected '%s' but actual is '%s'", sorted[k], item)
log.Printf("expected '%s' but actual is '%s'", sorted[k], item)
t.Fail()
}
}
}