Ad
  • Custom User Avatar

    'just wanted to make py3 available for the kata, but I discovered that the whole testing process was actually totally flawed... x(

    I updated the python test suite by:

    • adding two edge cases
    • changing the reference solution which was wrong
    • changing totally the process of the tests/assertions to actually match the requirements.
    • converting the class to namedtuple to avoid some kind of cheats (note: I didn't change the description on purpose, considering the goal is to use the getters)

    JS and ruby need to be updated yet...

  • Custom User Avatar
  • Default User Avatar

    In my opinion it should only be a duplicate, if the instance is of the same class and all instance variables are set to the same value. What is the definition of "duplicate" here? What instance is a duplicate in the test case according to the maker of this kata?

  • Custom User Avatar

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

  • Default User Avatar

    I would say, the task should be explained as "counting ones in the base 2 representation" (or something like that).

  • Default User Avatar

    My code works if I escape the ' in the input (aren't).
    In the input here, the ' character is not escaped. How can I fix this problem?