Ad
  • Default User Avatar
  • Custom User Avatar

    OP solved it, closing

  • Custom User Avatar

    ":(" is never a valid smiley (at least in this kata).

    Every smiling face must have a smiling mouth that should be marked with either ) or D

    They are smiling faces.

  • Custom User Avatar

    How is that a kata issue? You have a list of valid eyes, noses and mouths, and some examples of valid and invalid smilies. Create the combinations of valid parts yourself, and those will be the full list of possible valid smilies. For testing your regular expression, use regex101.com

  • Custom User Avatar

    it's not sorting properly for some tests. you can log the input to the console to see which test you're failing.

    also, you are not supposed to call the function explicitly, the tests will do that for you

    p.s, please mark your comment as spoiler if you are posting code snippets. and, this is not a kata issue, please use a question tag next time