diff options
Diffstat (limited to 'internal/test')
| -rw-r--r-- | internal/test/helpers.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/internal/test/helpers.go b/internal/test/helpers.go index a93aa9e..c466c69 100644 --- a/internal/test/helpers.go +++ b/internal/test/helpers.go @@ -4,19 +4,20 @@ * Refer to the file "LICENSE" for details. *******************************************************************************/ -package option +package test import ( "reflect" "testing" ) -func AssertEqual[V any](t *testing.T, actual, expected V) { +func AssertEqual[V any](t *testing.T, actual, expected V) bool { if reflect.DeepEqual(actual, expected) { - return + return true } t.Helper() t.Errorf("expected %#v, but got %#v", expected, actual) + return false } func PointerTo[V any](value V) *V { |
