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.
Alr raised as issue
This comment is hidden because it contains spoiler information about the solution
I have the same failure error. There must be some issues at PHP language tests.
I will try to translate my code to another language and see what will happen.
Have exactly same problem (php).
1, 3, 4, 7, 9, 10, 13, 15, 19, 22 - 1st test, expected 22
1, 3, 4, 7, 9, 10, 13, 15, 19, 21, 22, 27, 28, 31, 39, 40, 43, 46, 58, 64 - 2nd test, expected 67 and at attempt expected 57 (with same n=20)!?!?
My implementation passed:
public function test30() { $this->assertEquals("Lorem ipsum dolor sit amet,\nconsectetur adipiscing elit.\nVestibulum sagittis dolor\nmauris, at elementum ligula\ntempor eget. In quis rhoncus\nnunc, at aliquet orci. Fusce\nat dolor sit amet felis\nsuscipit tristique. Nam a\nimperdiet tellus. Nulla eu\nvestibulum urna. Vivamus\ntincidunt suscipit enim, nec\nultrices nisi volutpat ac.\nMaecenas sit amet lacinia\narcu, non dictum justo. Donec\nsed quam vel risus faucibus\neuismod. Suspendisse rhoncus\nrhoncus felis at fermentum.\nDonec lorem magna, ultricies a\nnunc sit amet, blandit\nfringilla nunc. In vestibulum\nvelit ac felis rhoncus\npellentesque. Mauris at tellus\nenim. Aliquam eleifend tempus\ndapibus. Pellentesque commodo,\nnisi sit amet hendrerit\nfringilla, ante odio porta\nlacus, ut elementum justo\nnulla et dolor.", justify("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum sagittis dolor mauris, at elementum ligula tempor eget. In quis rhoncus nunc, at aliquet orci. Fusce at dolor sit amet felis suscipit tristique. Nam a imperdiet tellus. Nulla eu vestibulum urna. Vivamus tincidunt suscipit enim, nec ultrices nisi volutpat ac. Maecenas sit amet lacinia arcu, non dictum justo. Donec sed quam vel risus faucibus euismod. Suspendisse rhoncus rhoncus felis at fermentum. Donec lorem magna, ultricies a nunc sit amet, blandit fringilla nunc. In vestibulum velit ac felis rhoncus pellentesque. Mauris at tellus enim. Aliquam eleifend tempus dapibus. Pellentesque commodo, nisi sit amet hendrerit fringilla, ante odio porta lacus, ut elementum justo nulla et dolor.",30)); }
From insruction tab and passed base test.
Fails "Testing for width=15" with :"Line length is not equal
Failed asserting that 10 matches expected 15."
But i get source string and make conversion mannualy by rules from instructions tab and result with my implementation is same.
And there are no info about what exact no right, but seems in other languages there are expected length at least.
So i think there are invalid tests for php langauge.
Empty string.
it says "should work with empty array" what is the input of that test case then?
This comment is hidden because it contains spoiler information about the solution