From 9819a0ef6ff226a0728903954acb81bf89f51caa Mon Sep 17 00:00:00 2001 From: Stein Fletcher Date: Sun, 11 Aug 2019 23:51:47 +0100 Subject: [PATCH] Pass error message to assertion library --- Makefile | 2 +- assert.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index ca4fd25..5a4f511 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ .PHONY: test test-examples docs fmt vet test: - go test ./... -v -race -covermode=atomic -coverprofile=coverage.out + go test ./... -v -covermode=atomic -coverprofile=coverage.out test-examples: cd examples && go test -v ./... && \ diff --git a/assert.go b/assert.go index b4187dc..6b989e0 100644 --- a/assert.go +++ b/assert.go @@ -20,17 +20,17 @@ type testifyVerifier struct{} // JSONEq asserts that two JSON strings are equivalent func (a testifyVerifier) JSONEq(t *testing.T, expected string, actual string, msgAndArgs ...interface{}) bool { - return assert.JSONEq(t, expected, actual, msgAndArgs) + return assert.JSONEq(t, expected, actual, msgAndArgs...) } // Equal asserts that two objects are equal func (a testifyVerifier) Equal(t *testing.T, expected, actual interface{}, msgAndArgs ...interface{}) bool { - return assert.Equal(t, expected, actual, msgAndArgs) + return assert.Equal(t, expected, actual, msgAndArgs...) } // Fail reports a failure func (a testifyVerifier) Fail(t *testing.T, failureMessage string, msgAndArgs ...interface{}) bool { - return assert.Fail(t, failureMessage, msgAndArgs) + return assert.Fail(t, failureMessage, msgAndArgs...) } func newTestifyVerifier() Verifier {