Test for using errors.New with a capitalized string (#368)
Add a test for the "error strings should not be capitalized" warning when using `errors.New`.
To be honest, I don't know if this will pass or not; I assume it will.
diff --git a/testdata/errors.go b/testdata/errors.go
index 3435bf8..a4201a7 100644
--- a/testdata/errors.go
+++ b/testdata/errors.go
@@ -33,5 +33,6 @@
err = fmt.Errorf("newlines are fun\n") // MATCH /error strings.*end with punctuation/
err = fmt.Errorf("Newlines are really fun\n") // MATCH /error strings.+not be capitalized/
err = errors.New(`too much stuff.`) // MATCH /error strings.*end with punctuation/
+ err = errors.New("This %d is too low", x) // MATCH /error strings.*be capitalized/
return err
}