Create of factory methods to create the instances of the classes to check equality on
Use the factory methods when creating the instances
Why
Much cleaner
Testing
:+1:
Additional Notes
The ArrayQueueEqualsTest still does create a few instances without an of since they were peculiar and it didn't really make sense to make a method for these special cases. Specifically, the tests where the front of the queue is not at index 0 and when the queue's data loops back on the array.
Related Issues or PRs
Closes #830
What
of
factory methods to create the instances of the classes to check equality onWhy
Much cleaner
Testing
:+1:
Additional Notes
The
ArrayQueueEqualsTest
still does create a few instances without anof
since they were peculiar and it didn't really make sense to make a method for these special cases. Specifically, the tests where the front of the queue is not at index0
and when the queue's data loops back on the array.