ch14.6-14.7

This commit is contained in:
lbenedar
2026-03-06 19:58:15 +03:00
parent 577f902ab3
commit 69658a7bd4
8 changed files with 267 additions and 1 deletions

View File

@@ -20,3 +20,11 @@ func StringContains(t *testing.T, actual, expectedString string) {
t.Errorf("got: %q; expected to contain: %q", actual, expectedString)
}
}
func NilError(t *testing.T, actual error) {
t.Helper()
if actual != nil {
t.Errorf("got: %v; expected: nil", actual)
}
}