message-size-increase #3
@ -166,10 +166,10 @@ func testEncodeAny(test *testing.T, value any, correctTag Tag, correctBytes tu.S
|
|||||||
test.Log("got: ", tu.HexBytes(bytes))
|
test.Log("got: ", tu.HexBytes(bytes))
|
||||||
test.Log("correct:", correctBytes)
|
test.Log("correct:", correctBytes)
|
||||||
if tag != correctTag {
|
if tag != correctTag {
|
||||||
return fmt.Errorf("tag not equal")
|
return fmt.Errorf("tag not equal: %v != %v", tag, correctTag)
|
||||||
}
|
}
|
||||||
if ok, n := correctBytes.Check(bytes); !ok {
|
if ok, n := correctBytes.Check(bytes); !ok {
|
||||||
return fmt.Errorf("bytes not equal: %d", n)
|
return fmt.Errorf("bytes not equal at index %d", n)
|
||||||
}
|
}
|
||||||
if n != len(bytes) {
|
if n != len(bytes) {
|
||||||
return fmt.Errorf("n not equal: %d != %d", n, len(bytes))
|
return fmt.Errorf("n not equal: %d != %d", n, len(bytes))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user