Skip to content

LinkedHashMap method deleteAt #99

@zrwusa

Description

@zrwusa

To Reproduce
Steps to reproduce the behavior:
let hashMap: LinkedHashMap<string, number>;

 hashMap.set('one', 1);
  hashMap.set('two', 2);

  hashMap.delete('one');
  expect(hashMap.get('one')).toBeUndefined();
  expect(hashMap.size).toBe(1);
  hashMap.deleteAt(0);
  expect(hashMap.get('two')).toBe(undefined); // different from expected
  expect(hashMap.size).toBe(0);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions