From 2b4530f9c535027816aa46d06a6a565b97bd305c Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Mon, 11 Aug 2025 12:38:24 +0200 Subject: add package jsonmatch --- internal/test/helpers.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'internal') 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 { -- cgit v1.2.3