summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hamlet.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/hamlet.go b/hamlet.go
index 8cdc578..76cc3b6 100644
--- a/hamlet.go
+++ b/hamlet.go
@@ -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()}
}