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.
Never mind. I think I know why - I was using some global variables. I removed the globals and it worked as it should...
In the Javascript version, when I comment out some test cases, some tests that did not work before now work. Seems like it is dependant on the order of the tests...
Okay, now the
value swap issue
was corrected.Yes C++.
Thanks!
I guess you are using C++, right? ;-)
The C++ version is a translation. The translator swaped the expected and actual value.
Now I've corrected it. Please retry ;-)
If no problem, please mark the issue as resolved. Thanks.
EDIT:At the moment, I can't republish the changes. So you can try it with old test code, just to know: the expected value is your reuslt, and the actual value is author's ;-)
Could the compiler be buggy?
I get this for the second example test:
Test Results:
Tests
ExampleTests
Expected: equal to 12
Actual: 2
Have no idea why. The answer can't be 12 because n is equal to 10.
Hi, I get this for one of the extended tests:
Expected: equal to eBIIL TLOIA!
Actual: ����� �����!
I've looked on the web and I found that � is a "replacement char". I have no idea why I get this result.
Thanks,