generate: Make output of testGenerateRun easier to compare

This commit is contained in:
Sasha Koshka 2025-07-20 23:18:36 -04:00
parent 2c57423838
commit 272e47224d

View File

@ -47,7 +47,7 @@ func testGenerateRun(test *testing.T, protocol *Protocol, imports string, testCa
if err != nil { log.Fatalf("at %d: %v\n", n, err) }
encoder.Flush()
got := buffer.Bytes()
log.Println("got: ", tu.HexBytes(got))
log.Printf("got: [%s]", tu.HexBytes(got))
log.Println("correct:", correct)
if n != len(got) {
log.Fatalf("n incorrect: %d != %d\n", n, len(got))