Skip to content

Commit

Permalink
test generated error messages as well
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarik committed Feb 23, 2016
1 parent fa2b126 commit a05b36a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gobottest/gobottest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func TestAssert(t *testing.T) {
}

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")
}
}
Expand All @@ -31,7 +31,7 @@ func TestRefute(t *testing.T) {
}

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")
}
}

0 comments on commit a05b36a

Please sign in to comment.