An implementation of a hashmap
The class HashMap is an implementation of HashMap.
HashMapTests is a suite of tests that put this class through its paces.
This includes testing:
- hash clash.
- hash map resizing.
Please note that HashMap elements can be accessed or set using bracket notation as well as using the get or add methods. Note: The add updates existing items as well as adding new ones.
The tests can be run in an ide or at the command line using:
python -m unittest HashMapTests
Make sure the following libraries are installed:
- Mock
- Unittest