frankban / quicktest

Quick helpers for testing Go applications
MIT License
529 stars 27 forks source link

fix ErrorMatches #31

Closed rogpeppe closed 5 years ago

rogpeppe commented 6 years ago

If we do c.Assert(err, qt.ErrorMatches, pattern) and err is nil, we want the resulting failure to print the expected error message pattern, not that it's a bad check.