test generated error messages as well

This commit is contained in:
gmarik 2016-02-23 01:08:49 -05:00
parent fa2b126aa7
commit a05b36a1fa
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ func TestAssert(t *testing.T) {
} }
Assert(t, 1, 2) Assert(t, 1, 2)
if err == "" { if err != `gobottest_test.go:16: 1 - "int", should equal, 2 - "int"` {
t.Errorf("Assert failed: 1 should not equal 2") t.Errorf("Assert failed: 1 should not equal 2")
} }
} }
@ -31,7 +31,7 @@ func TestRefute(t *testing.T) {
} }
Refute(t, 1, 1) Refute(t, 1, 1)
if err == "" { if err != `gobottest_test.go:33: 1 - "int", should not equal, 1 - "int"` {
t.Errorf("Refute failed: 1 should not be 1") t.Errorf("Refute failed: 1 should not be 1")
} }
} }