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.
28 lines
497 B
28 lines
497 B
package require
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"gitoa.ru/go-4devs/config/test/assert"
|
|
)
|
|
|
|
func Equal(t *testing.T, expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
|
|
t.Helper()
|
|
|
|
if assert.Equal(t, expected, actual, msgAndArgs...) {
|
|
return
|
|
}
|
|
|
|
t.FailNow()
|
|
}
|
|
|
|
func Equalf(t *testing.T, expected interface{}, actual interface{}, msg string, args ...interface{}) {
|
|
t.Helper()
|
|
|
|
if assert.Equalf(t, expected, actual, msg, args...) {
|
|
return
|
|
}
|
|
|
|
t.Errorf(msg, args...)
|
|
t.FailNow()
|
|
}
|
|
|