(t *testing.T)
| 155 | } |
| 156 | |
| 157 | func TestEmptyMapOperations(t *testing.T) { |
| 158 | om := New[string, any]() |
| 159 | |
| 160 | oldValue, present := om.Get("foo") |
| 161 | assert.Nil(t, oldValue) |
| 162 | assert.Nil(t, om.Value("foo")) |
| 163 | assert.False(t, present) |
| 164 | |
| 165 | oldValue, present = om.Delete("bar") |
| 166 | assert.Nil(t, oldValue) |
| 167 | assert.False(t, present) |
| 168 | |
| 169 | assertLenEqual(t, om, 0) |
| 170 | |
| 171 | assert.Nil(t, om.Oldest()) |
| 172 | assert.Nil(t, om.Newest()) |
| 173 | } |
| 174 | |
| 175 | type dummyTestStruct struct { |
| 176 | value string |