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

    They both serve a purpose. The text is better for direct eyeballing while the string literals are better for copying for further testing/debugging. If one of them was to be removed it's 1, because it is less exact. But there's no need for that, is there. It's not like it's in the way. What can be done though is to combine them by line breaking string literals in some way such that it can still be copied and evaluated, for example:

    ''.join(
     [ 'Hi, I am some \n'
     , 'text and I need \n'
     , 'to be arranged.'
     ]
    )
    

    .. the real problem here in my opinion is that the input text isn't a string literal

  • 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

    Python:

    passing all fixed test cases but no random test cases. Although it is probably because of my terribly-written, bug-riddled code, the random tests are impossible to debug. The strings are way too long, and it would be really helpful if there were some shorter random strings.

  • Custom User Avatar

    If some one would still find a duplicate, please log an issue instead.

  • Custom User Avatar
  • Custom User Avatar
  • Custom User Avatar
  • Custom User Avatar

    added to both languages

  • Custom User Avatar

    just use aaaaaaaaaa (10+10) with size=15. The goal is to make sure the user doesn't add an empty line at the end.

  • Custom User Avatar

    the maximum line length will never be less than 15 characters;

    For the cut edge cases, I'm not even sure what the correct expected result must be. All JS solutions either time out on such cases or give different results.

  • Custom User Avatar
    • Missing fixed/sample tests with numbers between a "cut" and the hyphen index

    edit: also, "abcdef ", size=8

  • Loading more items...