You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
packer/vendor/github.com/approvals/go-approval-tests/utils/testing_utils.go

12 lines
281 B

package utils
import "testing"
// AssertEqual Example:
// AssertEqual(t, 10, number, "number")
func AssertEqual(t *testing.T, expected, actual interface{}, message string) {
if expected != actual {
t.Fatalf(message+"\n[expected != actual]\n[%s != %s]", expected, actual)
}
}