Ad
  • Default User Avatar

    You have two tests that have the expected result as: "Values should not be equal: 'VISA'", but the kata expects VISA. You should change those tests to "Values should not be equal: 'Visa'" or delete them.
    Did this kata in javascript.

  • Custom User Avatar

    Phone numbers may or may not have a leading zero, contain formatting for country or area codes and additional information such as extension numbers etc.

    031 753 776
    039324892
    +850 (0195) 1 823 167
    +850 (079) 907 489 (ext. 2582)
    

    Whereas a credit card number can be a string or when stripped of whitespace an integer.

    4012888888881881
    348282246310005
    6012 9999 9999 9999
    5305 1051 0510 5106
    

    This is also one little hurdle to throw into the kata to make it a touch more difficult/require some thought.

  • Default User Avatar

    Similar to phone number, credit card number is a string.

  • Default User Avatar

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