(t *testing.T)
| 2392 | } |
| 2393 | |
| 2394 | func TestStringSlice_Serialized_Set(t *testing.T) { |
| 2395 | sl0 := NewStringSlice("a", "b") |
| 2396 | ser0 := sl0.Serialize() |
| 2397 | |
| 2398 | require.GreaterOrEqual(t, len(ser0), len(slPfx), "serialized shorter than expected") |
| 2399 | |
| 2400 | sl1 := NewStringSlice("c", "d") |
| 2401 | _ = sl1.Set(ser0) |
| 2402 | |
| 2403 | require.Equal(t, sl0.String(), sl1.String(), "pre and post serialization do not match") |
| 2404 | } |
| 2405 | |
| 2406 | func TestIntSlice_Serialized_Set(t *testing.T) { |
| 2407 | sl0 := NewInt64Slice(1, 2) |