aboutsummaryrefslogtreecommitdiff
path: root/internal/test/helpers.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2025-08-11 12:38:24 +0200
committerStefan Majewsky <majewsky@gmx.net>2025-08-11 12:38:50 +0200
commit2b4530f9c535027816aa46d06a6a565b97bd305c (patch)
treea01a1d36025aa43180486531b734905242b8c322 /internal/test/helpers.go
parentd53f04ea869fb52c5d5d68a2032534bbaa27d120 (diff)
downloadgo-gg-2b4530f9c535027816aa46d06a6a565b97bd305c.tar.gz
add package jsonmatch
Diffstat (limited to 'internal/test/helpers.go')
-rw-r--r--internal/test/helpers.go7
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 {