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.
Yeah, I went ahead and refactored the missing logic to complete this kata, thanks!
I certainly need help with this Kata. There are several tests that are not working properly, such as one where it should be a tie but instead the test is expecting Evil to win. My code works with the examples on the kata description but when it comes to the attempts, the thing simply fail: Is there a way to fix the tests, please?
1 1 1 1 1 1
1 1 1 1 1 1
Test Failed
Expected string length 48 but was 45. Strings differ at index 15.
Expected: "Battle Result: Evil eradicates all trace of Good"
But was: "Battle Result: No victor on this battle field"
--------------------------^
Log
0 0 0 0 0 10
1 1 1 1 1 1
0 1 0 0 0 0
Test Failed
Expected string length 38 but was 45. Strings differ at index 15.
Expected: "Battle Result: Good triumphs over Evil"
But was: "Battle Result: No victor on this battle field"
--------------------------^
Completed in 1.6080ms
ShouldBeATie
Log
1 0 0 0 0 0
0 0 0 0 0 0
1 1 1 1 1 1
1 0 0 0 0 0
0 1 0 0 0 0
0 1 0 0 0 0
0 1 0 0 0 0
0 0 1 0 0 0
0 0 0 1 0 0
1 0 0 0 1 0
Test Failed
Expected string length 45 but was 38. Strings differ at index 15.
Expected: "Battle Result: No victor on this battle field"
But was: "Battle Result: Good triumphs over Evil"
Thanks, I am going to check it out!
This comment is hidden because it contains spoiler information about the solution
I have the exact same issue
Hye colleagues:
This thing must have something wrong in the test asserts, I have tried my code on my Visual Studio Code, then in my IDLE as well and it went just fine. Then I tested it here and it gives me errors each time I try to test it out, any inputs, comment, somebody help!