Ad
  • Custom User Avatar

    When the initial input is :

    To do list:  -2HAZ6TU, -47vU, -6hy1kQWf, +r, +6NwW4h8qq3
    

    I get the following error message :

    Expected: 'To do list: r', instead got: 'To do list: r, 6NwW4h8qq3'
    

    ...which is exactly the same issue described by Lisensolikum above...I believe it is a bug, unless I've missed something in the requirements.

    hope this helps, thanks

  • Custom User Avatar

    Previously asked by bel but I will raise this as issue:

    1. When todo list is empty and there is more than one item to add, you expect only first one to be added. Bug?
    2. Such case appear only in random tests, so it is possible to avoid it.
  • Custom User Avatar

    Hi Ben, maybe I'm missing something but there are some test I do not understand (or maybe they are wrong...):

    "Expected: 'To do list: 0bhjTwzQUx', instead got: 'To do list: 0bhjTwzQUx, Px, 0JM7s20'"
    Where 'str1="To do list: "' and 'str2="+0bhjTwzQUx, +Px, +0JM7s20"'

    Reading the description I assume I have to return all the tasks marked with '+' but the test is asking just for the first.
    It alway happens when 'str1="To do list: "'
    Can you help?

  • Custom User Avatar

    Ok Ben, I can see that. Gonna try again, thanks!

  • Custom User Avatar

    Hi Bel,

    The solution previously used to check if your solution was correct was wrong. It outputted 'To Do List: To do List' if one or both of the strings were empty or something like that. It is possible your solution had the same mistake.

    I have since updated the solution so that it no longer makes this mistake.

  • Custom User Avatar

    Hello Ben!
    My 'past solution' is not passing the tests anymore :( I've seen some kind of unstability while solving the kata. Sorry I have no better feedback to give you.

  • Custom User Avatar

    This is now resolved.

  • Custom User Avatar

    Thanks for spotting this. It has now been rectified.

  • Custom User Avatar

    No repeats on the 'to do list'

    and I got this in the random tests:

    To do list: 6qt7Qse, l, Gcb, Z
    -6qt7Qse, +ccO, +l, -Gcb, -l, +CZv, -FzAFwVgu, +Z
    
    Expected: 'To do list: Z, ccO, l, CZv', instead got: 'To do list: Z, ccO, CZv'
    
    To do list:
    +Q, -WT8Jgi11A, -Q, -6, -3, +9, +fl3
    
    Expected: 'To do list: To do list:, Q, 9, fl3', instead got: 'To do list: To do list:, 9, fl3'
    
  • Custom User Avatar

    Sometimes the random tests generates an initial to-do list with duplicate entries.

  • Custom User Avatar
    [ 'To do list:',
      '-iyoFE, +z3emp, +xSSAljtkI, +c8cA, -jmwAOpFC' ]
    Expected: 'To do list: To do list:, z3emp, xSSAljtkI, c8cA', instead got: 'To do list: z3emp, xSSAljtkI, c8cA'