def test_round_321416(): rnd = 1149376 exp_outcome = 0.24 pos = rnd_positions(REELS, rnd) assert pos == (2, 13, 10, 6, 20) symbols = position_symbols(REELS, pos) assert symbols == ('gyp', 'gHl', 'JgH', 'ygH', 'LSg') paylines = find_paylines(symbols) assert paylines == [(6, 'g', 3, 0.12), (19, 'g', 3, 0.12)] assert sum_payline(paylines) == exp_outcome
def test_position_symbols(): assert position_symbols(REELS, (8, 7, 20, 3, 25)) == ('g!L', 'g!v', 'pHv', 'yvL', 'pL!') assert position_symbols(REELS, (4, 4, 4, 0, 6)) == ('pJL', 'gvS', 'LHp', 'vpl', 'pgv')