(t *testing.T)
| 2416 | } |
| 2417 | |
| 2418 | func TestUintSlice_Serialized_Set(t *testing.T) { |
| 2419 | sl0 := NewUint64Slice(1, 2) |
| 2420 | ser0 := sl0.Serialize() |
| 2421 | |
| 2422 | require.GreaterOrEqual(t, len(ser0), len(slPfx), "serialized shorter than expected") |
| 2423 | |
| 2424 | sl1 := NewUint64Slice(3, 4) |
| 2425 | _ = sl1.Set(ser0) |
| 2426 | |
| 2427 | require.Equal(t, sl0.String(), sl1.String(), "pre and post serialization do not match") |
| 2428 | } |
| 2429 | |
| 2430 | func TestUint64Slice_Serialized_Set(t *testing.T) { |
| 2431 | sl0 := NewUint64Slice(1, 2) |