Ad
  • Custom User Avatar

    hi thnks for pointing to the >>> myJourney issue...
    i fixed it already...

    as for 'testAssertContains' i dont understand what you are asking for... as BOTH the
    Test.assertContains(Journey(5, "Dalston", "Crystal Palace"), "YES! You can make it! You will have £2 left on your card.");
    Test.assertContains(Journey(1, "Dalston", "Crystal Palace"), "NO WAY! Top-up £2 or more for this journey.");

    test cases contain the full string with the correct integer (credit remain on card when YES ... OR the amount missing (top-up) + full string sentence)...

    do you mean that i shall change Test.assertContains >>> to contain less? like "YES you can make it" AND "NO WAY!" ?
    OR do you mean that i shall change >>>
    Test.assertContains(Journey(5, "Dalston", "Crystal Palace"), "YES! You can make it! You will have £2 left on your card.");

    TO >>>
    Test.assertEquals(Journey(5, "Dalston", "Crystal Palace"), "YES! You can make it! You will have £2 left on your card.");

    sorry to ask this but i validated all test cases and they all come back as green. please explain what you think the problem is. and waht could be the solution.

    thank you.
    z

  • Custom User Avatar

    ok.

    i might just come up with a new idea than.

    thanks
    z

  • Custom User Avatar

    i dont mind if it's simple
    they dont have to be hard...

    how can i find out if it's a duplicate?

    z

  • Custom User Avatar

    ok i managed to find the JavaScript test framework...

    https://github.com/Codewars/codewars.com/wiki/Codewars-JavaScript-Test-Framework

    will use this and fix random tests...

    thx.
    z

  • Custom User Avatar

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

  • Custom User Avatar

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