(t *testing.T)
| 70 | } |
| 71 | |
| 72 | func TestDeleteNonExistent(t *testing.T) { |
| 73 | m := orderedmap.NewMap() |
| 74 | m.Set("a", 1) |
| 75 | m.Delete("nope") // no-op |
| 76 | if m.Len() != 1 { |
| 77 | t.Fatalf("expected Len 1, got %d", m.Len()) |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | func TestLen(t *testing.T) { |
| 82 | m := orderedmap.NewMap() |