Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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
ok.
i might just come up with a new idea than.
thanks
z
i dont mind if it's simple
they dont have to be hard...
how can i find out if it's a duplicate?
z
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
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution