TheAlgorithms / PHP

All Algorithms implemented in PHP
MIT License
2.14k stars 467 forks source link

Two new files added CheckEven.php and CheckOdd.php #139

Closed vishalvnair124 closed 5 months ago

vishalvnair124 commented 1 year ago

Two new files added CheckEven.php and CheckOdd.php.for checking the given integer is odd or even ,In CheckEven.php if the number is Even isEven function return true otherwise false. In CheckOdd.php if the number is Odd isOdd function return true otherwise false.

vishalvnair124 commented 5 months ago

I would like to ask a doubt.how do I add unit test in this

On Fri, 14 Jun, 2024, 11:14 am Brandon Johnson, @.***> wrote:

Closed #139 https://github.com/TheAlgorithms/PHP/pull/139.

— Reply to this email directly, view it on GitHub https://github.com/TheAlgorithms/PHP/pull/139#event-13155925088, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5FSXTRMEYYNFPBFQWMPYGTZHJ7LPAVCNFSM6AAAAABJJVSHP2VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTGE2TKOJSGUYDQOA . You are receiving this because you authored the thread.Message ID: @.***>

darwinz commented 4 months ago

If you look at PRs that have been closed/merged, there are quite a few examples of unit tests. Here is one example:

https://github.com/TheAlgorithms/PHP/pull/153/files#diff-1c28e8aece542377d6125190ddb14a36b5889c18ab9897f7345cb8b89aa36f5f