-
-
Notifications
You must be signed in to change notification settings - Fork 531
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
Added Even/Odd in Ruby #1840
Added Even/Odd in Ruby #1840
Conversation
Accept a number on command line and print if the number is Odd or Even
I see the file name was wrong & has been corrected, my bad. Is there something I can do about it now? |
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.
Looks like there are two test failing here.
- Empty Input ("")
- Invalid Input ("a")
Patch those cases, and we'll be good to go! 👍
Test Case 1: Send a String and Test Case 2: Empty Value
Hi Jeremy, I learnt how to update in the Branch named patch-*** I've handled these 2 Cases, placed the program invocation & Output in Program Header. Kindly do check and Commit. |
Error out for Strings
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.
Nice work!
Can hacktoberfest tag be added to this? |
thank you Jeremy. I'll keep writing to this repo. loved the travis thing it was good experience. |
Accept a number on command line and print if the number is Odd or Even
Congrats on taking the first step to contributing to the Sample Programs repository maintained by The Renegade Coder! For simplicity, please make sure that your pull request includes one and only one contribution.
Complete the Applicable Sections Below
Find which section best describes your pull request and make sure you fill it out. To start, let us know which issue you've fixed.
Code Snippets
Added/Updated <Sample Program> in <Language>
formatDocumentation
Added/Updated <Sample Program> in <Language> Article
formatTesting
Added/Updated <Language>/<Project> Testing
formatNotes
Added a program to accept a number on command line and print if it is Odd or Even