Exemplo n.º 1
0
func TestStructWithRefChunks(t *testing.T) {
	assert := assert.New(t)

	set := gen.SetOfFloat32Def{0: true}.New()
	str := gen.StructWithRefDef{
		R: set.Ref(),
	}.New()

	// 1 for the Type and 1 for the ref in the R field.
	assert.Len(str.Chunks(), 2)
}