diff options
| -rw-r--r-- | hamlet.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -10,6 +10,10 @@ func (a Assertion) Assert() bool { return a.truth } +func (a Assertion) Deny() bool { + return !a.truth +} + func Present(v any) Assertion { return Assertion{!reflect.ValueOf(v).IsZero()} } |
