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.
Both of your solutions pass without problems so I'll close this issue.
Yea that's definitely the issue! That actually allowed me to easily fix my code, as well.
yes very sure. i did a manual substring on the last line to limit it to 11 characters. also i print the output and can confirm that it has only the expected length 11, so the test is not referring to the last line. also in the other tests you can see they are checking line by line, after "sit amet," comes "consectetur", which has exactly 11 characters. however since this is in the middle of the text, it has to be justified to length 20. maybe there is a non-mentioned rule, that if only one word fits into a line, no gaps should be added? okay i think this has to be the answer.. just read the last line of the description:
"Strings with one word do not need gaps ('somelongword\n')." I cannot test it right now, but i am pretty sure this is it.
Are you sure it isn't testing for your last line?
having the same or a very similar issue:
Testing length of line 20
Test Passed: Value != undefined
Test Passed: Value == string
Test Passed: Value != 0
Test Passed: Value == 44
Test Passed: Value == 20
Test Passed: Value == Lorem ipsum dolor
Test Passed: Value == 20
Test Passed: Value == sit amet,
Line length is not equal 11 - Expected: 11, instead got: 20
The line length is set to 20, so since this is not the last line, it should have length 20 as it does. Why does the test expect length 11?
Hey!
I was wondering if I am having an error with my code, or if there is possibly something wrong with the test spec? I'm getting the following error message:
Test Passed: Value != undefined
Test Passed: Value == string
Test Passed: Value != 0
Test Passed: Value == 61
Test Passed: Value == 15
Test Passed: Value == Lorem ipsum
Test Passed: Value == 15
Test Passed: Value == dolor sit amet,
Line length is not equal 11 - Expected: 11, instead got: 15
82 Passed
1 Failed
0 Errors
It seems like the test is checking to make sure the last line is not justified, but I can't see how it would ever be a length of 11.