-
Notifications
You must be signed in to change notification settings - Fork 192
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 info on Snowhouse stringizers for C++ #115
Comments
I also want to update it to 4.0+ so we get booleans and strings correct (https://github.com/codewars/codewars-runner-cli/issues/827). I haven't checked if any stringizer APIs have changed. |
Since the issue of missing stringizers popped up again a couple of days ago, and I expect it will come back again, I'd be willing to provide such snippet. Any suggestion on format and location of such doc entry? Where to put it in directory structure, how to mark it, what tags to use, etc? @kazk if you have any suggestions, or even better if you could provide some template somewhere in repository I could fill in with actual explanation and code, it would be great. Thanks |
We should have a For location, I think under |
Done. We should add a reference for Igloo too. Igloo isn't great and it's unfortunately no longer maintained, but it will require a significant effort for Codewars to switch to something else at this point. Runner supports Criterion and Google Test as well, but Codewars doesn't have an option to choose a test framework, so I'll need to figure that out first to enable them. |
@error256 , @kazk , anyone familiar with C++: If you could take a look at this kumite: https://www.codewars.com/kumite/5f9b749a9cd7a8002dfa2f34/ or this file: https://github.com/codewars/docs/blob/snowhouse-stringizers/content/languages/cpp/igloo/stringizers.md and explain me one thing: Why for my custom classes ( |
I think it's Koenig lookup. |
C++ kata often produce unhelpful assertion messages, because authors do not know how to work with stringizers and other mechanisms of Snowhouse framework.
See Getting better output for your types for reference and provide some example how to create a stringizer for custom or library types (
std::pair<int, int>
being quite common), and where to put it in the kata (preloaded, tests?)The text was updated successfully, but these errors were encountered: