Add comments
diff --git a/testhelper/convenience.go b/testhelper/convenience.go
index 3b788b7..96966f3 100644
--- a/testhelper/convenience.go
+++ b/testhelper/convenience.go
@@ -2,12 +2,15 @@
import "testing"
+// This function compares two arbitrary values and performs a comparison. If the
+// comparison fails, a fatal error is raised that will fail the test
func Compare(t *testing.T, expected interface{}, actual interface{}) {
if expected != actual {
t.Fatalf("Expected [%#v] but got [%#v]", expected, actual)
}
}
+// A convenience function for checking whether an error value is an actual error
func CheckErr(t *testing.T, e error) {
if e != nil {
t.Fatalf("Unexpected error: %#v", e)