mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-27 14:47:50 -03:00
test: output format readability improvement
This commit is contained in:
@ -65,13 +65,13 @@ func (s *linguistCorpusSuite) TestLinguistSamples() {
|
|||||||
|
|
||||||
errMsg := fmt.Sprintf("file: %q\texpected: %q\tgot: %q\n", path, expected, got)
|
errMsg := fmt.Sprintf("file: %q\texpected: %q\tgot: %q\n", path, expected, got)
|
||||||
if _, ok := cornerCases[filename]; ok {
|
if _, ok := cornerCases[filename]; ok {
|
||||||
s.T().Logf(fmt.Sprintf("\t\t[corner case] %s", errMsg))
|
s.T().Logf(fmt.Sprintf("\t[corner case] %s", errMsg))
|
||||||
} else {
|
} else {
|
||||||
s.Equal(expected, got, errMsg)
|
s.Equal(expected, got, errMsg)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
s.T().Logf("\t\ttotal files: %d, ok: %d, failed: %d, other: %d\n", total, ok, failed, other)
|
s.T().Logf("\ttotal files: %d, ok: %d, failed: %d, other: %d\n", total, ok, failed, other)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Second part of the test_blob.rb#test_language
|
// Second part of the test_blob.rb#test_language
|
||||||
|
Reference in New Issue
Block a user