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.
Expected: "AA 45522:Paris St. Abbeville,Paris St. Abbeville/67,670:/", instead got: "AA 45522:Paris St. Abbeville,Paris St. Abbeville/67,670"
Again, see the:/
in the expected value. That's what your test is expecting, and it's wrong, I believe. Cheers for those 9 hackers (as in great programmers).If your code were correct you should get:
in green color.
No, no extra ':/' at the end.
You could notice that now 9 more guys passed the Ruby translation.
Expected: "RE 13001:Gordon Road Atlanta/5:/", instead got: "RE 13001:Gordon Road Atlanta/5"
See the Expected... So that extra ':/' should be part of the solution then?
143 guys passed the Ruby translation (see the top of the page) so I am quite sure there are no problems in the tests.
So it's your code which appends something at the end of your "got".
Are you sure? I changed my code to fail in the first attempt and got this:
Expected: "AA 45522:Paris St. Abbeville,Paris St. Abbeville/67,670", instead got: "AA 45522:Paris St. Abbeville,Paris St. Abbeville/67,670:"
The 'instead got' statement is the output of my code. The Expected, then, is the expected output of the test, so the test is appending that extra ':/' to random tests, it seems. This is ruby
The good result is
RE 13222:Gordon St. Atlanta/2
and you returned ""RE 13222:Gordon St. Atlanta/2:/". You have a problem in your code. Cheers.Hello,
Expected: "RE 13222:Gordon St. Atlanta/2:/", instead got: "RE 13222:Gordon St. Atlanta/2"
I'm constantly getting the the extra :/ for random test. Is it a problem with my solution?
substring method on StringBuffer's API returns a String object.