blob: 3b788b7684c2e84a2bf4696a68618494619be0c1 [file] [log] [blame]
package testhelper
import "testing"
func Compare(t *testing.T, expected interface{}, actual interface{}) {
if expected != actual {
t.Fatalf("Expected [%#v] but got [%#v]", expected, actual)
}
}
func CheckErr(t *testing.T, e error) {
if e != nil {
t.Fatalf("Unexpected error: %#v", e)
}
}