From dd68cfd62603fa728b9707d7f37de092436d94ab Mon Sep 17 00:00:00 2001 From: demo Date: Sat, 30 May 2026 11:27:11 -0400 Subject: test: simplify if-clauses in tests --- hamlet_test.go | 4 ++-- 1 file 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) } -- cgit v1.2.3