Ad
  • Custom User Avatar

    haha - you caught me, I created the solution on my phone on the way home and coudln't access a tab key at the time.
    Speaking of indenting, nice solution Giacomo (*clicks neck back into place after staring so far to right of my screen *) :P

  • Custom User Avatar

    I've replaced my test function with yours and now everyone elses previous submissions are not passing... I think the problem is the random tests are being generated too quickly for slower solutions to process correctly, working on a fix now

  • Custom User Avatar

    Tests are working now, also working with random test cases, I ensured number arguments were passed in too, hopefully all fixed if you're able to test?

  • Custom User Avatar

    Sure, thanks- any help would be super :)

  • Custom User Avatar

    No tests seem to be working now...
    I tried replacing actual/expected as advised without success, then I commented out the test cases altogether to restore how it was previously without them, but still the test are just not running, without any info given why

  • Custom User Avatar

    Thank you for the feedback- I didn't consider random test cases! I've added 10 random tests with randomly generated sentences :)

  • Custom User Avatar

    checked and it is 'h3llo' in the example :)

  • Custom User Avatar

    Thank you- I completely overlooked that! Have fixed example description

  • Custom User Avatar

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

  • Custom User Avatar

    Thanks for the feedback! Completely overlooked the potential confusion there- I've changed the template code to use 'digits' instead of 'num' to ensure it's meaning is seperate from the actual number passed in :)

  • Custom User Avatar

    Part of the problem was my test case function was using toString which didn't behave as expected for numbers 18-19 digits in length.
    I've edited and republished to include your solution for the test cases, to ensure accuracy, great solution btw!