Skip to content

Fixes #2 , #3 , #4 , #6 #8

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
Mar 27, 2025
Merged

Conversation

AhmedHamdiy
Copy link
Contributor

This pull request includes significant changes to the CTQueue class and its associated test class, CTQueueTest. The primary focus is on enhancing the functionality of the queue and improving the test coverage to ensure the correctness of the queue operations.

Enhancements to CTQueue class:

  • Adhere to Java's API and implement new methods remove, removeIfNone, poll, peek, and size to handle various queue operations more effectively.

Improvements to CTQueueTest class:

  • Modified testAddGarantyFIFOOrder to ensure elements are dequeued in FIFO order and added an assertion to check if the queue is empty.
  • Added new test methods testAddAll, testEmptyQueueRemove, testIsEmpty, testPeek, testPoll, testRemove, and testRemoveIfNone to cover additional scenarios and ensure the robustness of the queue operations.

@AhmedHamdiy
Copy link
Contributor Author

@Ducasse Could you please review this PR

@Ducasse
Copy link
Collaborator

Ducasse commented Mar 27, 2025

Thanks I will have a look I hope later today.

@Ducasse
Copy link
Collaborator

Ducasse commented Mar 27, 2025

Sounds good to me. Tx for the contribution.

@Ducasse Ducasse merged commit b748a33 into pharo-containers:master Mar 27, 2025
4 checks passed
@shehab299
Copy link

@AhmedHamdiy
ايوة يا حمدي يا حلاق

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.

3 participants