Ad
  • Custom User Avatar
  • Custom User Avatar
  • Custom User Avatar

    Hello. Unless I am missing something obvious, there seems to be an issue with random tests in PHP.

    I keep failing with messages like:

    1. Fight: dpabzgm**dy*s
      Expected result: Let's fight again!

      OR

    2. Fight: *ddq*bpxzb**m
      Expected result: Right side wins!

      OR

    3. Fight: up**sz
      Expected result: Let's fight again!

    None of the above expectations is correct! (according to how I understood the kata details)

    Here is my analysis of the above examples:

    Example: fight string: Test expects: fight string after airstrike: Left side letters: Right side letters: Left power: Right power: Correct result:
    1 dpabzgm**dy*s Let's fight again! dpabzg_______ 'p','b' 'd','z' 5 3 Left side wins!
    2 *ddq*bpxzb**m Right side wins! __d___pxz____ 'p' 'd','z' 3 3 Let's fight again!
    3 up**sz Let's fight again! u____z - z 0 1 Right side wins!

    Can someone please check the random tests setup or point out my mistake? Thank you very much in advance.