def test_get_round1_winner_no_hu(): test: str = Path('cases/round1finished16.txt').read_text(encoding='utf-8') winner, remain_players = sat16ev.get_round1_winner(test) expected_winner: str = "" expected_players: List[str] = ["kindose", "aaeschaa", "bbtondo"] assert winner == expected_winner assert sorted(remain_players) == sorted(expected_players)
def test_get_round1_winner_1player_not_finished_before_hu(): test: str = Path('cases/round1-1player-not-finished-before-hu.txt').read_text(encoding='utf-8') winner = sat16ev.get_round1_winner(test) expected = ("pzpm", ["pzpm"]) assert winner == expected
def test_get_round1_winner_1player_not_finished(): test: str = Path('cases/round1-1player-not-finished.txt').read_text(encoding='utf-8') winner = sat16ev.get_round1_winner(test) expected = ("anime22", ["anime22"]) assert winner == expected
def test_get_round1_winner_win_hu(): test: str = Path('cases/round1finished1.txt').read_text(encoding='utf-8') winner = sat16ev.get_round1_winner(test) expected = ("DiggErr555", ["DiggErr555"]) assert winner == expected
def test_get_round1_winner_lose_hu(): test: str = Path('cases/round1finished5.txt').read_text(encoding='utf-8') winner = sat16ev.get_round1_winner(test) expected = ("gAAoChAAo", ["gAAoChAAo"]) assert winner == expected