summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordemo <demo@antix1>2026-05-30 22:57:17 -0400
committerdemo <demo@antix1>2026-05-30 22:57:17 -0400
commita2a3a28b48eea53f4212877c4fbc4fc8d0865f64 (patch)
tree1efca889ac7b99116753143a84d8c6807632e7fe
parent1d90d466a8f6f23c4cedcfc97438fc10bbd80d3e (diff)
feat: implement Denyv0.1.2master
-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()}
}