Skip to content

feat: Refactor ArrayQueue, Create CircularArrayQueue, Refactor ArrayD… #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 29, 2024

Conversation

walmir-silva
Copy link
Contributor

…eque, and Add Extra Tests

  • Refactored ArrayQueue to inherit from the new CircularArrayQueue base class
    • Added clear method to ArrayQueue
    • Added getItems method to ArrayQueue
    • Updated tests to cover clear and getItems methods in ArrayQueue
  • Created CircularArrayQueue as a base class for circular array-based queue implementations
    • Implemented common functionality for enqueue, dequeue, and capacity management
    • Added clear and getItems methods
  • Refactored ArrayDeque to inherit from CircularArrayQueue
    • Removed redundant methods now provided by CircularArrayQueue
    • Added tests for clear and getItems methods
  • Added comprehensive tests for all new and refactored methods
    • Ensured 100% coverage for clear and getItems methods
    • Added tests for mixed operations, various data types, and circular behavior

…eque, and Add Extra Tests

- Refactored ArrayQueue to inherit from the new CircularArrayQueue base class
  - Added clear method to ArrayQueue
  - Added getItems method to ArrayQueue
  - Updated tests to cover clear and getItems methods in ArrayQueue
- Created CircularArrayQueue as a base class for circular array-based queue implementations
  - Implemented common functionality for enqueue, dequeue, and capacity management
  - Added clear and getItems methods
- Refactored ArrayDeque to inherit from CircularArrayQueue
  - Removed redundant methods now provided by CircularArrayQueue
  - Added tests for clear and getItems methods
- Added comprehensive tests for all new and refactored methods
  - Ensured 100% coverage for clear and getItems methods
  - Added tests for mixed operations, various data types, and circular behavior
@walmir-silva walmir-silva merged commit 54c81cf into main Jun 29, 2024
1 check failed
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