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

Add tests for exercises #82

Closed
gyzerok opened this issue Jul 21, 2015 · 7 comments
Closed

Add tests for exercises #82

gyzerok opened this issue Jul 21, 2015 · 7 comments

Comments

@gyzerok
Copy link
Contributor

gyzerok commented Jul 21, 2015

Requesting to add tests for exercises in the book. So people can test their solutions against these tests.

@DrBoolean
Copy link

There should be a full test suite with the code. It's organized a little weird i guess

@gyzerok
Copy link
Contributor Author

gyzerok commented Jul 21, 2015

I guess here for example should be something like this:

var input = // some test input data
var output = // result of applying function
var sentences = function () {};
assert(sentences(input), output);

This would help to understand what should function do and help to know if you write it right before looking to the answers.

@DrBoolean
Copy link

Oh oh, i see. You mean, put the test into the book text?

@gyzerok
Copy link
Contributor Author

gyzerok commented Jul 21, 2015

@DrBoolean I think it would be better if all the exercises could be done without knowledge about github. Just with the book in front of your eyes.

@gyzerok
Copy link
Contributor Author

gyzerok commented Jul 21, 2015

I can try to rewrite those with such tests inside and without implicit support functionality.

@DrBoolean
Copy link

I see now! I'm down for a small experiment

@KtorZ KtorZ closed this as completed in ab1353b Feb 20, 2016
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

No branches or pull requests

2 participants