Ad
  • Custom User Avatar

    Thank you I fixed it.

  • Custom User Avatar
    expected:<65[ 119esi 111dl 111lw 108dvei 105n 97n 111]ka> 
    but was: <65[  119 esi 111 dl 111 lw 108 dvei 105 n 97 n 111 ]ka>
    

    I see the error message like this, it's related to how you replace the first character.

  • Custom User Avatar

    Yes, use the markdown and mark your post as having spoiler content too so we can check what could be wrong.

  • Custom User Avatar
    expected:<65[ 119esi 111dl 111lw 108dvei 105n 97n 111]ka>
    but was: <65[ 119esi 111dl 111lw 108dvei 105n 97n 111]ka>
    

    If you want I can show the code implementation.

  • Custom User Avatar

    Maybe there are more spaces than needed there but can't be seen because you didn't use backticks to format the code. To increase the readability of comments or descriptions, see this page in the github wiki.

  • Custom User Avatar

    expected:<65[ 119esi 111dl 111lw 108dvei 105n 97n 111]ka>
    but was: <65[ 119esi 111dl 111lw 108dvei 105n 97n 111]ka>

    Can't get it really ?
    The implementation is on Java...
    Any suggestions ?

  • Custom User Avatar

    Thanks for reporting. I've applied your suggestion to Scala random tests. Regards, suic

  • Custom User Avatar

    This kata should be 5 kyu if random tests might generate empty strings as random words:

    private def randomWord(): String =
      Random.alphanumeric.filter(_.isLetter).take(Random.nextInt(20)).mkString.toLowerCase
    

    And this would work as expected (no random spaces before/between/after words):

    private def randomWord(): String =
      Random.alphanumeric.filter(_.isLetter).take(Random.nextInt(20) + 1).mkString.toLowerCase