niyoj / even_odd_number

In this repo, we are trying to show how many ways are there to check whether a number is even or odd.
2 stars 7 forks source link

Added the test suite for python. #9

Closed ajratnam closed 3 years ago

ajratnam commented 3 years ago

The aim of this PR?

This PR adds the test suite for python. It also fixes a few spelling mistakes in lcm.py and loop_1.c

How to use this testing program?

python test.py <program.py>

Additional Notes

This test suite only works by checking whether the respective even or odd exists in the next line after the input

Valid output Example

Enter your number - (input) Your number is even

Invalid output Example

Enter your number - (input) Please wait while I am calculating. Your number is even

ajratnam commented 3 years ago

@niyoj Finally made this test suite. Please let me know if this is ok? or any updates needed.

ajratnam commented 3 years ago

I did run the tests before submitting and it worked fine.

ajratnam commented 3 years ago

@niyoj ?

niyoj commented 3 years ago

Sorry was offline due to some network issues. Now I am reviewing this PR.

ajratnam commented 3 years ago

So what do you think?

niyoj commented 3 years ago

@ajratnam Sorry for the delay. I am quite unsure about adding this feature in my repo. So for now I will label your PR as hacktoberfest-accepted but won't merge the PR. I will be mentioning you whenever I think this will be necessary.

Thanks for contributing.