• Is still there...

  • @searchingforapuppy

    I think you are misinterpreting the logs. In this particular kata the assertions are not separated, therefore the error message you see (false should equal true) does not necesarily refer to the first test; i.e. your solution might work for the first few tests until it reaches a case for which it does not work.

  • I'm not sure, but maybe the TypeScript test is broken.

    I'm working with this problem with TypeScript, and I failed a test within tests below.
    I tested them, and it seems I failed the first case.

    The error message say that "expected false to equal true", so the first case is expected to return false, and my program returns true for this case.
    Although, the first case is given as valid case at the Instruction page.

    Basic tests
    Log
    [121, 144, 19, 161, 19, 144, 19,  11] [121, 14641, 20736, 361, 25921, 361,20736, 361]
    
    [ 3, 4 ] [ 0, 25 ]
    
    [ 121, 144, 19, 161, 19, 144, 19,  11] [ 231, 14641, 20736, 361, 25921, 361, 20736, 361]
    
    [ 121, 144, 19, 161, 19, 144, 19,  11] [ 121, 14641, 20736, 36100, 25921, 361, 20736, 361]
    
    [] []
    expected false to equal true
    
  • No, they're not broken.

  • Tests for PHP are broken. Check them again, I've added a comment

  • Not an issue of the kata. Unfortunately your code seems wrong.

  • Actually, can you do that at 7kyu?

  • In that case, please clean up your leftovers, i.e. resolve the "issue", thanks.

  • Don't worry, Guys. The firing squad has been canceled. I forgot to add validation for empty arrays.

  • I've got a failed test on the remote server.( I use Golang)

    Should handle basic cases: 
    Expected
      <bool>: false
      to equal
      <bool>: true
    

    I've printed sorted copies of arrays. Also, I've printed the results of function execution and added false pairs. It gave me the next debug print:

      [11 19 19 19 121 144 144 161] 
      [121 361 361 361 14641 20736 20736 25921]  
      true  result  <----- Test talks that there would be 'false' here.
      
      [11 19 19 19 121 144 144 161]
      [231 361 361 361 14641 20736 20736 25921]
      11
      231
      false  result  
      
      [11 19 19 19 121 144 144 161]
      [121 361 361 14641 20736 20736 25921 36100]
      19
      14641      
      false  result
    

    This is an original view of source arrays(in the same launch)

     [121 144 19 161 19 144 19 11] 
     [121 14641 20736 361 25921 361 20736 361]
    

    Where is a mistake here?!?! Guys, I will be forced to get guns and start shooting at the author and other guys who fabricated their answers to these wrong tests!

  • To post an issue you have to give a detailed reason - input, your output, expected ouput - :-)
    For your information (look at the top of the page) 1310 people passed the PHP kata and 684 the TS one.

  • Tests for Typescript and PHP are broken