def check_result(in_chips, winners, allocated):
            """check that winners have won chips (more chips in allocated than in in_chips)
               and than losers have lost chips (strictly less chips in allocated than in chips)"""
            assert sum(allocated) == sum(in_chips)
            for i in range(len(in_chips)):
                if winners[i]:
                    self.assertGreaterEqual(allocated[i], in_chips[i])
                    # can be equal for example with 2 winners and 1 loser who has bet one chip (not divisible by 2)
                    # so the winner who does not get the chip of the loser will have allocated[i] == in_chips[i]
                elif in_chips[i] > 0:
                    self.assertLess(allocated[i], in_chips[i])
                    # because there is at least one winner so a loser who bet must lose at least one chip
check that winners have won chips (more chips in allocated than in in_chips)
               and than losers have lost chips (strictly less chips in allocated than in chips)
tests/utils/test_holdem_utils.py