mirror of
https://github.com/avelino/awesome-go.git
synced 2024-11-07 16:33:40 +00:00
improve output, output all fails on CI
This commit is contained in:
parent
72ae645803
commit
715739b747
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user