-
-
Notifications
You must be signed in to change notification settings - Fork 432
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
[PHPUnit testing]: Fix sorting tests not running. #128
[PHPUnit testing]: Fix sorting tests not running. #128
Conversation
- made this change so that PHPUnit can execute sorting tests - sorting tests were previously ignored because of the file name typo
- to fix "Test case class not matching filename" deprecation warning
Sorting tests are currently being executed. It is now evident that tests for some sorting algorithms are failing (see Note for test failures I fixed in this PR).
Initial test execution and output:(executed command is
|
- follows the function naming practices in the folder - fixes "undefined function selectionSort" in SortingTest.php - selection sort tests are now passing
- no min and max as function parameters - count sort tests are now passing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome update. Thanks a lot!
I believe the |
Actually, nevermind. I see what you're saying now - these tests weren't running before because the name was |
@anamarijapapic , would you try shortening the given range for the failing unit tests? I'd like to have the tests passing before merging this fix. |
In the count sort algorithm, it seems to me that it doesn't make much sense to receive |
Sure 😁 |
- shortening the given ranges - applied on the tests that hit PHP memory_limit - applied on the tests that exceed the expected duration time
- to fix "Test case not matching filename" deprecation warning
Fixes #127.