Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Could you add
using namespace std;
to your hidden tests so people aren't forced to add it to their code if they don't want to (C++ Version)?That's how you define an extension method in C#.
See: https://msdn.microsoft.com/en-us/library/bb383977.aspx
I'd say that this Kata could probably need some more tests. Maybe you could test that the Uncle Method is used and not just the same string returned.
It's probably because someone marked it with "Major Issues" without adding a comment. Which leads to this behaviour.
Maybe some tests with some
null
values in the List could be added? Or do you think this would be too much?Nice Kata btw. :)
Looks good, thank you. :-)
Cheers
It'd probaby be a good idea to add some tests to verify that
GetY(x)
is correctly implemented.Well it's actually the example
[TestCase(222222222222, Result=1)]
which requires a long. In the final tests it's been replaced with[TestCase(222222222, Result=1)]
so I guess you can just replace this one example test with the one of the final tests.But what needs changing is the given starting code:
As a void return type is clearly wrong.
Issues with the C# version.
Replace the given code with:
And also replace the given tests with:
Maybe you should define the given input a little more, for example that the input will never be smaller than 3 (-> no prime is smaller than 2). :)
It fails, because you convert the string to PascalCase.
With your solution the input
"this-is-a-string"
results in"ThisIsAString"
but actually should be"thisIsAString"
on the other hand if the input were"This-is-a-string"
then the result should be"ThisIsAString"
.Hope this helps you out. :-)
Looks good. Actually you could even move the interface into the preloaded section and just show its code in the description. :)
There are some small issues with the given tests in C# just replace them with:
Also maybe you could add what the return type for the required functions or give a interface which needs to be implemented for example:
So here are some things for the C# version:
Replace your starting code with:
For some example tests use:
Looks good. :-)
Loading more items...