mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 06:42:16 +00:00
WIP: more empty struct examples
This commit is contained in:
parent
3c38a25bbb
commit
d665c79cc9
@ -89,4 +89,13 @@ func TestProto3Compatibility(t *testing.T) {
|
|||||||
assert.NoError(t, err, "unexpected error")
|
assert.NoError(t, err, "unexpected error")
|
||||||
// This works:
|
// This works:
|
||||||
assert.Equal(t, ab, pb, "encoding doesn't match")
|
assert.Equal(t, ab, pb, "encoding doesn't match")
|
||||||
|
|
||||||
|
pb, err = proto.Marshal(&proto3.Header{})
|
||||||
|
assert.NoError(t, err, "unexpected error")
|
||||||
|
t.Log(pb)
|
||||||
|
|
||||||
|
pb, err = proto.Marshal(&proto3.Timestamp{})
|
||||||
|
assert.NoError(t, err, "unexpected error")
|
||||||
|
t.Log(pb)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user