v0.0.383 sq.InsertMultiple
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 2m15s

This commit is contained in:
2024-02-09 15:17:51 +01:00
parent 885bb53244
commit 30ce8c4b60
7 changed files with 423 additions and 29 deletions

View File

@@ -2,6 +2,7 @@ package tst
import (
"encoding/hex"
"fmt"
"reflect"
"runtime/debug"
"testing"
@@ -125,3 +126,17 @@ func AssertNoErr(t *testing.T, anerr error) {
t.Error("Function returned an error: " + anerr.Error() + "\n" + string(debug.Stack()))
}
}
func AssertStrRepEqual(t *testing.T, actual any, expected any) {
t.Helper()
if fmt.Sprintf("%v", actual) != fmt.Sprintf("%v", expected) {
t.Errorf("values differ: Actual: '%v', Expected: '%v'", actual, expected)
}
}
func AssertStrRepNotEqual(t *testing.T, actual any, expected any) {
t.Helper()
if fmt.Sprintf("%v", actual) == fmt.Sprintf("%v", expected) {
t.Errorf("values do not differ: Actual: '%v', Expected: '%v'", actual, expected)
}
}