Ad
  • Default User Avatar

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

  • Default User Avatar

    I am not seeing of examination ( (lenString == 0) || (k > lenString) || (k <= 0) ) ?

  • Default User Avatar

    Why in "Test" all basic test passed, but in "Attemp" basic test failed?

    In "Attempt" there are more basic tests than in "Tests".

  • Default User Avatar

    Thank you for answer. I read "Troubleshooting Your Solution" "When I run "Test", everything passes, but when I hit “Attempt” tests fail".
    As far as I understand "Attemp" consist of 2 parts: 1- handle basic cases (such as in "Test") 2-handle random cases.
    Why in "Test" all basic test passed, but in "Attemp" basic test failed?

  • Custom User Avatar

    Test are only the first tests, generally basic and easier ones. Attempt is the full battery of tests, with much more tests, random inputs, edge cases..., it is much more exhaustive. So there is nothing strange with what you are getting : your code handles basic tests but fails on the complete ones :)

  • Default User Avatar

    when i push Test

    Time: 2042msPassed: 1Failed: 0
    Test Results:
    Test Example
    should handle basic cases
    Test Passed
    Completed in 0.0796ms
    You have passed all of the tests! :)

    but when i push Attemp

    Time: 2088msPassed: 1Failed: 1Exit Code: 1
    Test Results:
    Test Example
    should handle basic cases
    Test Failed
    Log
    Expected
    : 3
    to equal
    : 1
    Completed in 0.6610ms
    should handle random cases
    Test Passed
    Completed in 0.0234ms

    why basic test failed on Attemp, but not failed on Test?