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

Test for bad input #10

Closed
wants to merge 1 commit into from
Closed

Test for bad input #10

wants to merge 1 commit into from

Conversation

gaggle
Copy link
Owner

@gaggle gaggle commented Aug 4, 2016

I usually don't program defensively, but if we wanted to test for bad input data what would be the expected behaviour of this flatten function? This PR just asserts that the function throws, which feels a bit cheeky because its not well-defined behaviour IMO. Strikes me as overkill to do explicit exceptions, but would be happy to be persuaded.

@coveralls
Copy link

coveralls commented Aug 4, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 22c223d on check-bad-input into b1cc9c3 on master.

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.

None yet

2 participants