There is no "evaluation team". Either you pass the tests or you don't. Your perfect code has a couple issues. You insert a newline character at the end of each line, and then at the end you join everything with a newline character, meaning most of your newlines are doubled, and the lyrics your function returns also end with a newline which is not correct. Also, here are the last few lines of your lyrics, you've got some plural issues:
Take one down and pass it around, 1 bottles of beer on the wall.\n\n1 bottle of beer on the wall, 1 bottle of beer.\n\nTake one down and pass it around, no more bottle of beer on the wall.\n\nNo more bottles of beer on the wall, no more bottles of beer.\n\nGo to the store and buy some more, 99 bottles of beer on the wall.\n
As a separate point, this kata should use chai.config.truncateThreshold=0 in order to show the entire output of the test, otherwise debugging is a nightmare. It currently only shows a small snippet of the actual and expected output which doesn't help anyone.
Please make sure to mark your post spoiler when posting code.
What is probably going on is that you are eyeballing the output and thinking it looks ok when really there's some difference or differences. When you have a string of length 11786 characters then that's how many comparisons you need to be making. If that seems like many then, yes. Don't compare by eyeball.
Typically caused by not doing the same thing. If you can't reproduce it then debug it in the Wodewar editor I suppose. Or figure out what makes it happen.
Not an issue. Please use issue to report kata problems that you can demonstrate exactly what they are - ie ones you've fully figured out.
This JS fork fixes this issue
chai.config.truncateThreshold=0
should be used in Javascript.There is no "evaluation team". Either you pass the tests or you don't. Your perfect code has a couple issues. You insert a newline character at the end of each line, and then at the end you join everything with a newline character, meaning most of your newlines are doubled, and the lyrics your function returns also end with a newline which is not correct. Also, here are the last few lines of your lyrics, you've got some plural issues:
As a separate point, this kata should use
chai.config.truncateThreshold=0
in order to show the entire output of the test, otherwise debugging is a nightmare. It currently only shows a small snippet of the actual and expected output which doesn't help anyone.The test results say otherwise xD
My solution is perfect, so I don't want to change it. It's with the evaluation team whether to accept or reject it. Thanks all for support
Please make sure to mark your post spoiler when posting code.
What is probably going on is that you are eyeballing the output and thinking it looks ok when really there's some difference or differences. When you have a string of length 11786 characters then that's how many comparisons you need to be making. If that seems like many then, yes. Don't compare by eyeball.
This comment is hidden because it contains spoiler information about the solution
Typically caused by not doing the same thing. If you can't reproduce it then debug it in the Wodewar editor I suppose. Or figure out what makes it happen.
Not an
issue
. Please useissue
to report kata problems that you can demonstrate exactly what they are - ie ones you've fully figured out.My code runs perfectly in my code editor but throws an error in the Wodewar editor. Why? Please help.