Fix -vet and -strict-style failures in tests

This commit is contained in:
Feoramund
2024-08-26 16:20:08 -04:00
parent 60cd0da2ed
commit 1f04f541cf
5 changed files with 20 additions and 21 deletions
+1 -2
View File
@@ -16,8 +16,7 @@ run_test_cases :: proc(t: ^testing.T, test_cases: []Test_Case, loc := #caller_lo
result, _, _ := utf8.grapheme_count(c.str)
if !testing.expectf(t, result == c.expected_clusters,
"(#% 4i) graphemes: %i != %i, %q %s", i, result, c.expected_clusters, c.str, c.str,
loc = loc)
{
loc = loc) {
failed += 1
}
}