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

    @TutulDevs maybe you have a typo in your code it happen to my a lot :). But if you wish you can share your solution and I will be happy to help you.

    Happy holidays to everyone!.

  • Custom User Avatar

    Hello guys, Happy Holidays to all!
    I check and run the code today and is still working.

    I don't know how to show an image here, but the code pass the tests.

  • Custom User Avatar

    Thank for the trick :D I never thougth of that.
    Well they work better now, but now a notice a missing comma on the Ouput result. I write in another post what a notice.
    #This is the Output from submit test

    Test Passed: Value == incorrect input
    Expected: 17161, 131, instead got: 17,161, 131'
    1 Passed
    1 Failed
    0 Errors
    

    #This is the output from the regular test
    But in another test I need the comma to make the answer correct:

    Test.assertEquals(checkRoot('30,31,32,33'),   '982,081, 99' 
    
  • Custom User Avatar

    But I find a kind of logic error on my code and fixed. Then this first test pass.

    I was evaluating:
    if(s.length < 4 && s.length >4 || "and a test for verify they are all number")
    this work in all the regular test.

    But is wrong because nothing can be greater and less at the same time. So I make a simple evaluation like

    if(s != 4){
    //do something
    }
    

    and make work fine in the "submit test"

  • Custom User Avatar

    I don't know what was the input from this case, because this was the result of hitting the button of submit. I asume this is the first test of the "submit test"

    "Expected: incorrect input, instead got: 257,401, 507.34,702,127,833,566" 
    
  • Custom User Avatar

    I edit my solution and find a way to make the first test of the "submit test" pass. But notice in the second test this:

    #From the Submit test

    Test Passed: Value == incorrect input
    Expected: 17161, 131, instead got: 17,161, 131'
    1 Passed
    1 Failed
    0 Errors
    

    The different I notice is a miss comma (,) in the test answer.

    But in the regular "test" you need a comma to make this answer correct
    #Line from the regular test

    Test.assertEquals(checkRoot('30,31,32,33'),   '982,081, 99'
    

    BTW I really enjoy this Kata :) And I learned a bunch of thing while solving this :)

  • Custom User Avatar

    this is the message I see when submmit

    Expected: incorrect input, instead got: 257,401, 507.34,702,127,833,566
    
  • Custom User Avatar

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