Jamie Hannaford | b2b237f | 2014-09-15 12:17:47 +0200 | [diff] [blame^] | 1 | package testhelper |
2 | |||||
3 | import "testing" | ||||
4 | |||||
5 | func Compare(t *testing.T, expected interface{}, actual interface{}) { | ||||
6 | if expected != actual { | ||||
7 | t.Fatalf("Expected [%#v] but got [%#v]", expected, actual) | ||||
8 | } | ||||
9 | } | ||||
10 | |||||
11 | func CheckErr(t *testing.T, e error) { | ||||
12 | if e != nil { | ||||
13 | t.Fatalf("Unexpected error: %#v", e) | ||||
14 | } | ||||
15 | } |