Ad
  • Custom User Avatar

    for js, it is

  • Custom User Avatar

    yes I think so too

  • Custom User Avatar

    Rejected for now. Please fork and resuggest with current language versions and descriptions.

  • Custom User Avatar

    fork hopefully solving the issue

  • Custom User Avatar

    JS tests could do with more invalid examples - i.e. currently not testing invalid inputs when camel is the target.

  • Custom User Avatar

    descriptions :))))))) ??????????????????????

  • Custom User Avatar
  • Custom User Avatar

    the JavaScript test suite uses the deprecated Test framework

  • Custom User Avatar

    The target_case listed by the tests is currently inaccurate for python. In your example, the test says it's testing for a target_case of camel, but the listed expected value of jklmn_j_l_m_j_k_lijklm suggests that it's actually testing for a target_case of snake. This probably sent you looking in the wrong place for a bug in your code. I would suggest printing the inputs for now so you can correctly debug your solution and hopefully someone will fix the tests soon.

    As for the actual problem in your code, your code is failing tests where the input is camelCase and the target_case is snake.

  • Custom User Avatar

    Tests in python report that they are testing for a certain target_case, but are often actually testing for a completely different target_case. (The actual target_case passed to the user's function is different than the target_case reported in the it block message).

    Tests in python also run the user solution 3 times, followed by 3 tests, making logs look more confusing than they need to be if the user tries to log anything in their solution.

    running print(identifier, target_case) produces the following output (The lines under "Log" are what my code printed, the other lines are the it block messages:

    Log
    defghKLMNODEFGcdefg kebab
    bcdefghijklmn-ghijklm-efghijkl-hijkl camel
    fghijkl_fghijklmn_fghijklm_ghijklm camel
    
    
    identifier = 'defghKLMNODEFGcdefg'
    target_case = 'camel'
    
    
    identifier = 'bcdefghijklmn-ghijklm-efghijkl-hijkl'
    target_case = 'kebab'
    
    
    identifier = 'fghijkl_fghijklmn_fghijklm_ghijklm'
    target_case = 'snake'
    
  • Custom User Avatar

    I think I'm making a mistake with the random tests, because 550 warriors were able to solve the task in Python:

    This is the error message:

    identifier = 'jklmnJKLMJKLijklm'
    target_case = 'camel'
    Expected: jklmn_j_k_l_m_j_k_lijklm Instead got: jklmn_jKLMJKLijklm: 'jklmn_jKLMJKLijklm' should equal 'jklmn_j_l_m_j_k_lijklm'
    
    The expected result looks like snake case although it should be camel case. My result is neither ‘jklmn_j_k_l_m_j_k_lijklm’ nor ‘jklmn_j_k_l_m_j_k_lijklm’ but ‘jklmnJKLMJKLijklm’.
    
    

    Can someone please help me?

  • Custom User Avatar

    Fixed.

  • Custom User Avatar

    Fixed.

  • Custom User Avatar

    Seems to be fixed by fork above, but limiting code length should not be done on a non-code-golf kata, especially when hardcoding the task is actually harder than writing a solution for it.

  • Custom User Avatar
  • Loading more items...