From a2a3a28b48eea53f4212877c4fbc4fc8d0865f64 Mon Sep 17 00:00:00 2001 From: demo Date: Sat, 30 May 2026 22:57:17 -0400 Subject: feat: implement Deny --- hamlet.go | 4 ++++ 1 file changed, 4 insertions(+) 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()} } -- cgit v1.2.3