Ad
  • Custom User Avatar

    Alr raised as issue

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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.

  • Default User Avatar

    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)!?!?

  • Default User Avatar

    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.

  • Custom User Avatar

    Empty string.

  • Custom User Avatar

    it says "should work with empty array" what is the input of that test case then?

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution