(t *testing.T)
| 2404 | } |
| 2405 | |
| 2406 | func TestIntSlice_Serialized_Set(t *testing.T) { |
| 2407 | sl0 := NewInt64Slice(1, 2) |
| 2408 | ser0 := sl0.Serialize() |
| 2409 | |
| 2410 | require.GreaterOrEqual(t, len(ser0), len(slPfx), "serialized shorter than expected") |
| 2411 | |
| 2412 | sl1 := NewInt64Slice(3, 4) |
| 2413 | _ = sl1.Set(ser0) |
| 2414 | |
| 2415 | require.Equal(t, sl0.String(), sl1.String(), "pre and post serialization do not match") |
| 2416 | } |
| 2417 | |
| 2418 | func TestUintSlice_Serialized_Set(t *testing.T) { |
| 2419 | sl0 := NewUint64Slice(1, 2) |