Fix tests

This commit is contained in:
2026-01-19 18:25:44 +01:00
parent a7a2474e2a
commit 08fd34632a
4 changed files with 49 additions and 45 deletions

View File

@@ -3,13 +3,14 @@ package util
import (
"encoding/json"
"fmt"
"git.blackforestbytes.com/BlackForestBytes/goext/langext"
"github.com/gin-gonic/gin"
"math"
"reflect"
"runtime/debug"
"strings"
"testing"
"git.blackforestbytes.com/BlackForestBytes/goext/langext"
"github.com/gin-gonic/gin"
)
func AssertJsonMapEqual(t *testing.T, key string, expected map[string]any, actual map[string]any) {
@@ -36,6 +37,7 @@ func AssertJsonMapEqual(t *testing.T, key string, expected map[string]any, actua
}
func AssertEqual(t *testing.T, key string, expected any, actual any) {
t.Helper()
// try to fix types, kinda hacky, but its only unit tests...
switch vex := expected.(type) {