(t *testing.T)
| 266 | } |
| 267 | |
| 268 | func TestOrderedMap_Back(t *testing.T) { |
| 269 | t.Run("NilOnEmptyMap", func(t *testing.T) { |
| 270 | m := orderedmap.NewOrderedMap[int, bool]() |
| 271 | assert.Nil(t, m.Back()) |
| 272 | }) |
| 273 | |
| 274 | t.Run("NilOnEmptyMap", func(t *testing.T) { |
| 275 | m := orderedmap.NewOrderedMap[int, bool]() |
| 276 | m.Set(1, true) |
| 277 | assert.NotNil(t, m.Back()) |
| 278 | }) |
| 279 | } |
| 280 | |
| 281 | func TestOrderedMap_Copy(t *testing.T) { |
| 282 | t.Run("ReturnsEqualButNotSame", func(t *testing.T) { |