Ad
  • Custom User Avatar

    C sample test code has compilation warnings.

  • Custom User Avatar

    Example code that will SIGSEGV the tests, yet has a perfectly reasonable return value:

    char **match (const char *p, const char **f) { char **m=calloc (sizeof (char*),1); return m; }
    
  • Custom User Avatar

    c_ary_eq implementation is deeply flawed: actual being shorter than expected will cause SIGSEGV.

  • Custom User Avatar

    Since you are insisting on modifying the input buffer and return it (which is not tested in any sample or fixed test) you should at least mention this in the description or the initial solution setup. I don't want to guess this from the fact that the signature doesn't declare source as const char*.

  • Custom User Avatar

    This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/147.
    Please join the discussion to share your opinions, and help us identify duplicate kata and retire them.

  • Default User Avatar

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

  • Custom User Avatar

    LUA does have a wrong function name in the solution template: s.solution should probably be s.startsWith (except this is part of the kata... which I doubt)

  • Custom User Avatar
  • Custom User Avatar
  • Custom User Avatar
    • Description should be language-agnostic

    • The five sentence can be classified in a note section and re-worded

  • Custom User Avatar

    The rule asking to remove spaces if input string is NULL doesn't make much sense, and more problematically, it is not tested in random tests.

  • Custom User Avatar

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

  • Default User Avatar

    Doing the NASM-version

    I pass the Test, and fail all on Attempt.

    Output is :

    *Actual*]: "Codewars is an educational community for computer programming. On the platform, software developers train on programming challenges known as kata.[1][2] These discrete programming exercises train a variety of skills in a variety of programming languages, and are completed within an online IDE.[3][4][5]"
    
    [Expected]: "Codewars is an educational community for computer programming. On the platform, software developers train on programming challenges known as kata. These discrete programming exercises train a variety of skills in a variety of programming languages, and are completed within an online IDE."
    
      [String]: "Codewars is an educational community for computer programming. On the platform, software developers train on programming challenges known as kata.[1][2] These discrete programming exercises train a variety of skills in a variety of programming languages, and are completed within an online IDE.[3][4][5]"
    

    However, it is not what I return.

    I output this to the concole just before exiting.

    Codewars is an educational community for computer programming. On the platform, software developers train on programming challenges known as kata. These discrete programming exercises train a variety of skills in a variety of         programming languages, and are completed within an online IDE.
    

    There may very well be errors in the string I return. I do however not return the string listed as actual.

  • Custom User Avatar

    The tests shouldn't log anything.

  • Default User Avatar

    It looks like the issue which is reported by B4B (it is marked as resolved) is still exist/reborn at least for Python. e.g. solution1, solution2 (the same solution just tried myself to make sure that the issue is reproducible) passed the Tests Suite. The solution will give incorrect results e.g. for case starts_with('axxxxabcxx', 'abc')

  • Loading more items...