Ad
  • Custom User Avatar

    thanks, that makes sense

  • Custom User Avatar

    In many random tests, all my test rows match except for a few, e.g.

    correct answer:
    "'D...'" 9!  Xy14lmTDftz-
    YtlLqmJ3Q!  "Gli9..."
    
    my answer:
    "'D...'" 9!  Xy14lmTDft-
    zYtlLqmJ3Q!  "Gli9..."
    

    In this example, the last letter of line (n) is shifted to the beginning of line (n+1) compared to the reference solution.

    Can I assume that if "123\n4567" is a correct solution, then "1234\n567" is also a correct? Is there a rule to make the solution unique?

  • Custom User Avatar

    It would be great if the random tests could be given an individual heading, or even consecutive numbering. Now every random test has the same name: Input text, Correct answer, and Answer returned.

  • Custom User Avatar

    (python)
    If a test is not passed, result is displayed twice:

    1. nicely formatted: Expect/Actual
    2. unformatted: Actual/Expected
    Input text: 
    
    Hi, I am some text and I need to be arranged.
    
    Line length: 15
    
    * Correct answer: 
    
    Hi, I am some
    text and I need
    to be arranged.
    
    * Answer returned: 
    
    Hi, I am some 
    text and I need 
    to be arranged.
    : 'Hi, I am some \ntext and I need \nto be arranged.' should equal 'Hi, I am some\ntext and I need\nto be arranged.'
    

    Is it possible to display only 1)?

  • Custom User Avatar

    I want to see the EN DASH character in the text. To do this, I copy the dash character from the sample tests window and execute the following code in python:

    import unicodedata
    c = "—" # char copied from the sample tests window in browser
    print(f"Unicode-Name: {unicodedata.name(c)}")
    

    the python output is "Unicode-Name: EM DASH".
    As I understand the description, an EN DASH was used in the text. Can someone please explain what I am misunderstanding?

  • Custom User Avatar

    Below you can see an excerpt from the description/sample tests in python, I replaced space characters by dots to make it easier to compare. The expected line length is 30 characters.

    (1)"nunc,..at..aliquet.orci..Fusce"
    (2)"at...dolor...sit...amet..felis"
    

    The sequence of spaces in line (1) is: 2, 2, 2.
    The word "at" at the beginning of line (2) could be appended at the end of line (1) if each sequence of 2 spaces would be replace by 1 space, couldn't it?

  • Custom User Avatar

    SMH calculating max() three times for the same values is not according to the DRY programming principle

  • 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?