Files
czmq/test_utils.go
zeekayandHanzo Dev 8274dde704 Go 1.27.1, and the code it can say more simply
Modules declare go 1.27.1 and the build images follow. go fix applied the
modernizers: any, strings.Builder and range over int, in both modules.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-16 19:55:46 -07:00

20 lines
400 B
Go

package czmq
import (
"fmt"
"strings"
"testing"
)
func assertEqual(t *testing.T, expected any, value any, message ...string) {
if expected == value {
return
}
var msg strings.Builder
msg.WriteString(fmt.Sprintf("'%v' != '%v'. Expected '%v' but got '%v'", expected, value, expected, value))
for _, m := range message {
msg.WriteString(fmt.Sprintf(". %s", m))
}
t.Fatal(msg.String())
}