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.
ranks unchangable
Not an issue.
Duplicate.
.
Must be your spelling.
The tests are checking variable
a
, so why're you putting the final result inb
?This is not an issue with the kata itself.
true
andfalse
here means "whether your array is as expected".The author should've used
Test.expect
for this, but well, I guess there are a thousand ways one can use Text fixtures improperly.It's not broken though, so it's at most a nuisance.
OH No! You made a Silly mistake -
The newline character is \n instead of /n
And after escaping it like I have told you in above comment You can see whats happening:You see that extra
\n
at the end thats what I was talking about ^_^ Hoping that helps and you will try other katas of Complete the Pattern Series.Now you can see that the
Suspicious Sentence
runs the last timeLoop 1
runs and it adds up an extra newline character in the end ofoutput
. To make it more clear try solving the kata again but this time escape the newline character, How?? like thisoutput += "\\n";
This comment is hidden because it contains spoiler information about the solution
And now I see you have solved the kata, Congrats ^_^ but ATM I'm suspicious how it passed as I can't find any newline character in your code?? It's probably
output += "";
which is doing something suspicious ! Can you clear it out??It's not clear what you tried ^_^' So can you elaborate it?? Or even better post your code here after formating it with triple backtick as a spoiler :)
Hey @ftopower, Probably extra newline at the end in your answer.
Again repeating what MMMAAANNN said
So kindly do so and
Happy Coding ^_^
Loading more items...