Adding convenience methods to reduce test duplication
diff --git a/testhelper/convenience.go b/testhelper/convenience.go
new file mode 100644
index 0000000..3b788b7
--- /dev/null
+++ b/testhelper/convenience.go
@@ -0,0 +1,15 @@
+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)
+ }
+}