Beta
Write Your Own Non-Templating Engine
10wthit56
Loading description...
Algorithms
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Needs more tests and random tests.
I'd welcome you to add those.
I remember feeling at the time that random tests would be very difficult to write in a way that actually tests anything; you'd have to generate a lot of functions, along with being able to make sure they compile correctly, which in my mind would be difficult to pull off without them all being roughly the same with some random characters thrown in.
And as for more regular tests, what kinds of things would you add?
Well, I can't come up with them immediately even if you ask me so (I did the kata 3 months ago, which is a long time ago), and 4 tests are really far from enough. I'm afraid you'll have to write more tests that has more coverage yourself.
Definitely needs some exaples and/or practice cases.
Fair point. Kind of rushed the description, to be honest. I've now added some example code and added example tests mirroring the description snippets.
Much better! (Y) Good kata
Awesome. Thanks for the feedback.