summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordemo <demo@antix1>2026-05-30 11:26:26 -0400
committerdemo <demo@antix1>2026-05-30 11:26:26 -0400
commitee5623ffef652cb3eced3570a75d6bd19161a956 (patch)
tree54c89f3ae91fe0dbe6498b6cf84fd85ae34d4218
parentb887bf08e6fd914d1adc7f13a14d824f74983c9c (diff)
test: add test for xor
-rw-r--r--hamlet_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/hamlet_test.go b/hamlet_test.go
index 1a9df31..a6720e8 100644
--- a/hamlet_test.go
+++ b/hamlet_test.go
@@ -17,4 +17,9 @@ func TestAssertion(t *testing.T) {
if v := theorem2.Assert(); v {
t.Errorf("want %t, got %t", false, true)
}
+
+ theorem3 := Xor(p, q)
+ if !theorem3.Assert() {
+ t.Errorf("want %t, got %t", true, false)
+ }
}