(t *testing.T)
| 5 | ) |
| 6 | |
| 7 | func TestSyncMap_Set(t *testing.T) { |
| 8 | sm := MakeSyncMap[int]() |
| 9 | sm.Set("key1", 1) |
| 10 | if sm.Get("key1") != 1 { |
| 11 | t.Errorf("expected 1, got %d", sm.Get("key1")) |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | func TestSyncMap_Get(t *testing.T) { |
| 16 | sm := MakeSyncMap[int]() |