diff options
Diffstat (limited to 'hamlet_test.go')
| -rw-r--r-- | hamlet_test.go | 4 |
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) } |
