summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordemo <demo@antix1>2026-05-30 11:27:11 -0400
committerdemo <demo@antix1>2026-05-30 11:27:11 -0400
commitdd68cfd62603fa728b9707d7f37de092436d94ab (patch)
tree1ea75b2a99f667d16a3c339608cb4fc63fc4bff7
parentee5623ffef652cb3eced3570a75d6bd19161a956 (diff)
test: simplify if-clauses in testsv0.1.1
-rw-r--r--hamlet_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/hamlet_test.go b/hamlet_test.go
index a6720e8..ca69425 100644
--- a/hamlet_test.go
+++ b/hamlet_test.go
@@ -9,12 +9,12 @@ func TestAssertion(t *testing.T) {
q := New(4)
theorem1 := If(p, q)
- if v := theorem1.Assert(); !v {
+ if !theorem1.Assert() {
t.Errorf("want %t, got %t", true, false)
}
theorem2 := If(q, p)
- if v := theorem2.Assert(); v {
+ if theorem2.Assert() {
t.Errorf("want %t, got %t", false, true)
}