Skip to content

Conversation

walmir-silva
Copy link
Contributor

  • Implemented the HashMap class in the KaririCode\DataStructure\Map namespace.
  • Added comprehensive unit tests for the HashMap class in the KaririCode\DataStructure\Tests\Map namespace.

Class:

  • KaririCode\DataStructure\Map\HashMap

Tests:

  • KaririCode\DataStructure\Tests\Map\HashMapTest

Implemented Features and Corresponding Tests:

  • Put method: testPutAddsKeyValuePairToMap
  • Get method: testGetReturnsValueForKey
  • Remove method: testRemoveDeletesKeyValuePairFromMap
  • Contains key method: testContainsKeyReturnsTrueIfKeyExists
  • Clear method: testClearRemovesAllKeyValuePairsFromMap
  • Keys method: testKeysReturnsAllKeysInMap
  • Values method: testValuesReturnsAllValuesInMap
  • Size method: testSizeReturnsNumberOfKeyValuePairsInMap
  • Handling null values: testHandlingNullValuesCorrectly
  • Put replaces value for existing key: testPutReplacesValueForExistingKey

- Implemented the HashMap class in the KaririCode\\DataStructure\\Map namespace.
- Added comprehensive unit tests for the HashMap class in the KaririCode\\DataStructure\\Tests\\Map namespace.

Class:
- KaririCode\\DataStructure\\Map\\HashMap

Tests:
- KaririCode\\DataStructure\\Tests\\Map\\HashMapTest

Implemented Features and Corresponding Tests:
- Put method: testPutAddsKeyValuePairToMap
- Get method: testGetReturnsValueForKey
- Remove method: testRemoveDeletesKeyValuePairFromMap
- Contains key method: testContainsKeyReturnsTrueIfKeyExists
- Clear method: testClearRemovesAllKeyValuePairsFromMap
- Keys method: testKeysReturnsAllKeysInMap
- Values method: testValuesReturnsAllValuesInMap
- Size method: testSizeReturnsNumberOfKeyValuePairsInMap
- Handling null values: testHandlingNullValuesCorrectly
- Put replaces value for existing key: testPutReplacesValueForExistingKey
@walmir-silva walmir-silva merged commit d371dae into main Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant