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.
the C# tests not longer use
Assert.AreEqual()
, they useAssert.That()
. you may need to reset the sample tests, as they are cached if you trained on the kata previouslyheh, I see now it was little counter intuitive from my perspective.
I just skipped training so I could see if i can do something else instead and I did.
I was dead sure I was right. :\ srry
I am luckier than I think!
ugh, repetio mater studiorum est?
I am now even more confused how the heck did Python code worked?
I leave it for now as it is!
Got it! All is good!
Your Python solution will not work in JavaScript. Your problems are caused exactly by the thing which works in Python, but not in JS.
arr[-1]
works differently in JS and Python.No, it's not! It worked. JS.
This just a sick joke.
With your updated code it is:
nbPetals % phrasess.length - 1
does not do what you think it does, but you need to take it from here.I don't get it!
This comment is hidden because it contains spoiler information about the solution
There was only one sample/fixed lowercase test, as well as in JS; rn it's fixed
Actually there ARE random tests in Crystal, but they were in the sample test section, while the actual sampl tests were in actual section, tl;dr the author just messed them up while uploading the original Crystal fork. That happens XD
anyways, corrected that, now the problem is resolved~
added as an edit to kata since it's too minor for a separate fork
Removed lowercase letters in Ruby, done in this fork
Fixed.
Fixed, now all tests are guaranteed to have uppercase
the funniest thing is that the only lowercase test; all random tests are using uppercase
Loading more items...