(t *testing.T)
| 8 | ) |
| 9 | |
| 10 | func TestArrayWriteCopiesValueBytes(t *testing.T) { |
| 11 | var a Array |
| 12 | val := super.NewBytes([]byte{0}) |
| 13 | a.Write(val) |
| 14 | copy(val.Bytes(), super.EncodeBytes([]byte{1})) |
| 15 | require.Equal(t, super.NewBytes([]byte{0}), a.Values()[0]) |
| 16 | } |