• Incorrect assertion?

 

I would like to give some feedback about ... From: https://py.checkio.org/mission/army-battles/solve/ HTTP_USER_AGENT: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36

My code is failing a assertion check which seems incorrect. Copy/paste from failed result is below: In the below situation army1 should lose (return False) as it has 1 less Warrior than army2. However, the assert is expecting army2 to win(return True).

army1 = Army() army2 = Army() army1.addunits(Warrior, 20) army2.addunits(Warrior, 21) battle = Battle() battle.fight(army1, army2) Your result: false Right result: true