diff options
Diffstat (limited to 'hamlet.go')
| -rw-r--r-- | hamlet.go | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -10,18 +10,10 @@ func (a Assertion) Assert() bool { return a.truth } -func (a Assertion) Deny() bool { - return !a.truth -} - -func Present(v any) Assertion { +func New(v any) Assertion { return Assertion{!reflect.ValueOf(v).IsZero()} } -func Absent(v any) Assertion { - return Assertion{reflect.ValueOf(v).IsZero()} -} - // Not computes ~a, given assertion a. func Not(a Assertion) Assertion { negation := !a.truth |
