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.
Thx! Good old days of fun programming.
Test for "moose" expects
false
. Test for "moOse" expectsfalse
. Relevant assertions in tests are:Doesn't this mean they both behave the same way? What is different about them?
The tests expects false, I don't know what you're complaining about, the test is fine, you're wrong.
That is the test, if it was be case-sensitive as you claim, it would expect
true
becauseo
andO
would be considered different letters, but it isn't.Please read the definition of case insensitive here: https://en.wikipedia.org/wiki/Case_sensitivity
In case-insensitive, uppercase and lowercase letters are the same, and that's what the test asks.
I would appreciate some explanation from you why you consider my answers wrong, and what is the error in tests you are complaining about, because I think I am missing something:
moose
is not an isogram, because the lettero
occurs twice.mOose
is not an isogram, because the lettero
occurs twice, with differend case (lowercase and uppercase).The occurrence of letters should be done in a case-insensitive way, i.e. both lowercase letters and uppercase letters contribute to the count of occurrences. And this is how it works in JavaScript translation. So, what exactly you think is wrong?
I'm not sure if I should be proud of it to be honest... but I can't take it back now