All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Added
PanicsandNotPanicsassert methods for panic detection;Panicsaccepts an optional expected value —nilskips value validation, anerrorvalidates witherrors.Is, anything else uses deep equality
- Improve error formatting in
Errorassert methods for better readability
- Added
Greater,GreaterOrEqual,Less, andLessOrEqualassert methods for numeric comparison - Added
EmptyandNotEmptyassert methods for zero-length checks on strings, slices, maps, and channels - Added
NotEqualDeltaassert method, complementingEqualDelta
ErrorandNoErrornow correctly treat typed nil errors (e.g.(*MyError)(nil)) as nil
- Added
MatchesandNotMatchesassert methods for regexp matching on strings
- Added new assert methods
TrueFalseEqualNotEqualEqualDeltaSameNotSameLengthContainsNotContainsErrorNoErrorErrorIsNotErrorIsEqualJSONJSONFailFailf