blob: 3b788b7684c2e84a2bf4696a68618494619be0c1 [file] [log] [blame]
Jamie Hannafordb2b237f2014-09-15 12:17:47 +02001package testhelper
2
3import "testing"
4
5func 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
11func CheckErr(t *testing.T, e error) {
12 if e != nil {
13 t.Fatalf("Unexpected error: %#v", e)
14 }
15}