Ad
  • Custom User Avatar

    Working on fixing up & adding some tests to JS, have some questions for you.

    1. There is no current requirement for unique hashtags - for example, "#hey #hey" should return ["hey", "hey"], correct?
    2. Must every character in a hashtag be alphabetic? Currently it's unclear if, say, "#abc1" would count as valid
    3. If the hashtag comes immediately before punctuation ("hey, let's meet up in #london, sound good?"), does that invalidate the hashtag entirely?
  • Custom User Avatar

    Typical codewars description and test quality

    for those wondering:
    '#blue#red#yellow#green' return []

    '' return []

  • Custom User Avatar

    incomprehensible tests.

  • Custom User Avatar

    Trouble with other test row 'this is an in#line hash'.

  • Custom User Avatar

    The test only tests the first item of the output. Which means, you can just match the first hashtag (if there's any) and pass all the tests.

  • Custom User Avatar

    Yeah, that caught me offguard too. The description needs to be tweaked.

  • Custom User Avatar

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

  • Custom User Avatar

    expected 4 to equal 0 ???

  • Custom User Avatar
    • Ruby 3.0 should be enabled (Refer this & this for more detail)
  • Custom User Avatar

    Needs random tests

  • Custom User Avatar

    I'm having the same problem with this test.. if the 11th test is #blue#red#yellow#green, what is the expected result?

  • Custom User Avatar

    Expected: [], instead got: ["wha"]
    I'm at a loss as to how to pass this test without knowing the input...

  • Custom User Avatar

    needs to add last test case

    Test.assert_equals(get_hashtags("#123123123 #?"), [])
    
  • Custom User Avatar

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

  • Custom User Avatar

    Did some reverse engineering, the 11th test is: #blue#red#yellow#green

  • Loading more items...