Ad
  • Default User Avatar

    I cannot reproduce the failed test below on my local in js using node many versions or many browsers consoles with an instance of RegExp, the test is bogus:

    Gentle fixed tests
    100 fixed tests
    "10" is not divisible by 7: expected true to equal false
    Completed in 2ms

    My tests:
    true for
    0: 0
    false for
    1: 1
    false for
    2: 10
    false for
    3: 11
    false for
    4: 100
    false for
    5: 101
    false for
    6: 110
    true for
    7: 111
    false for
    8: 1000
    false for
    9: 1001
    false for
    10: 1010
    false for
    11: 1011
    false for
    12: 1100
    false for
    13: 1101
    true for
    14: 1110
    false for
    15: 1111
    false for
    16: 10000
    false for
    17: 10001
    false for
    18: 10010
    false for
    19: 10011
    false for
    20: 10100
    true for
    21: 10101
    false for
    22: 10110
    false for
    23: 10111
    false for
    24: 11000
    false for
    25: 11001
    false for
    26: 11010
    false for
    27: 11011
    true for
    28: 11100
    false for
    29: 11101
    false for
    30: 11110
    false for
    31: 11111
    false for
    32: 100000
    false for
    33: 100001
    false for
    34: 100010
    true for
    35: 100011
    false for
    36: 100100
    false for
    37: 100101
    false for
    38: 100110
    false for
    39: 100111
    false for
    40: 101000
    false for
    41: 101001
    true for
    42: 101010
    false for
    43: 101011
    false for
    44: 101100
    false for
    45: 101101
    false for
    46: 101110
    false for
    47: 101111
    false for
    48: 110000
    true for
    49: 110001
    false for
    50: 110010
    false for
    51: 110011
    false for
    52: 110100
    false for
    53: 110101
    false for
    54: 110110
    false for
    55: 110111
    true for
    56: 111000
    false for
    57: 111001
    false for
    58: 111010
    false for
    59: 111011
    false for
    60: 111100
    false for
    61: 111101
    false for
    62: 111110
    true for
    63: 111111
    false for
    64: 1000000
    false for
    65: 1000001
    false for
    66: 1000010
    false for
    67: 1000011
    false for
    68: 1000100
    false for
    69: 1000101
    ....

  • Default User Avatar

    If you failed a test you failed a test. Having passed some tests previously doesn't mean the following ones are wrong >_<

  • Default User Avatar

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

  • Custom User Avatar

    If the color changes, it's not the same kata...

  • Default User Avatar

    I already asked, we are not allowed to change colors like in real life models. Do not ask them, they will downvote you!

  • Custom User Avatar

    What about if the favorite color changes?

  • Default User Avatar

    thanks for the feedback

  • Default User Avatar

    oh is it because what matters is the week that used the most towels
    this is really smart i would have never thought of that

  • Default User Avatar

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

  • Default User Avatar

    Other than this your solution is awesome.

  • Custom User Avatar

    The description states we can only receive these colors. Why would you check something else?

  • Default User Avatar

    Not abstract; if we change the color preference this solution wont work because here it sorts lexically 'blue' vs 'red'