Skip to content
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 test for istream. #56

Merged
merged 2 commits into from
Oct 10, 2020
Merged

Added test for istream. #56

merged 2 commits into from
Oct 10, 2020

Conversation

ufrshubham
Copy link
Contributor

@ufrshubham ufrshubham commented Oct 9, 2020

Description of Change

Adding test for istream operator. Additionally also changes the input.txt for ostream and istream to have all the input cases separated by comma. Having each input on new line was causing file read to pick up the '\r' character as well. And as of now largeInt cannot handle invalid strings as input to constructor. So to avoid additional string manipulation, I have using comma as a delimited for inputs.

Also changed file(COPY) to just copy input.txt file without creating input.txt directory.

Checklist

  • Added description of change
  • Added tests and example, test must pass
  • PR title follows semantic
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes: Fixes #54 and #1

@ayaankhan98 ayaankhan98 merged commit 19a6c78 into ayaankhan98:main Oct 10, 2020
@ufrshubham
Copy link
Contributor Author

That example was kind of confusing, but finally I understood what you were saying. Submitted #57 to add try-catch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Command file(COPY) not working as expected.
2 participants