(t *testing.T)
| 44 | } |
| 45 | |
| 46 | func TestFloat16PrimitiveSliceDirect(t *testing.T) { |
| 47 | // Tests serializing a slice as a root object |
| 48 | f := New(WithXlang(true), WithCompatible(false)) |
| 49 | f16 := float16.Float16FromFloat32(3.14) |
| 50 | |
| 51 | slice := []float16.Float16{f16, float16.Zero} |
| 52 | data, err := f.Serialize(slice) |
| 53 | require.NoError(t, err) |
| 54 | |
| 55 | var resSlice []float16.Float16 |
| 56 | err = testDeserialize(t, f, data, &resSlice) |
| 57 | require.NoError(t, err) |
| 58 | require.Equal(t, slice, resSlice) |
| 59 | } |
| 60 | |
| 61 | func TestSignedIntegerDynamicTypeIDsUseVarintEncoding(t *testing.T) { |
| 62 | f := New(WithXlang(true), WithCompatible(false)) |
nothing calls this directly
no test coverage detected