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.

29 lines
497 B

4 months ago
package require
import (
"testing"
4 months ago
"gitoa.ru/go-4devs/config/test/assert"
4 months ago
)
func Equal(t *testing.T, expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
t.Helper()
4 months ago
if assert.Equal(t, expected, actual, msgAndArgs...) {
4 months ago
return
}
t.FailNow()
}
func Equalf(t *testing.T, expected interface{}, actual interface{}, msg string, args ...interface{}) {
t.Helper()
4 months ago
if assert.Equalf(t, expected, actual, msg, args...) {
4 months ago
return
}
t.Errorf(msg, args...)
t.FailNow()
}