def test_turn_rotors_border_value_B(): list_of_rotors = [1, 26, 1] enigma = Enigma(list_of_rotors) enigma._turn_rotors() assert enigma._alpha == 2 assert enigma._beta == 26 assert enigma._gamma == 1
def test_turn_rotors_border_value_all_rotors(): list_of_rotors = [26, 26, 26] enigma = Enigma(list_of_rotors) enigma._turn_rotors() assert enigma._alpha == 1 assert enigma._beta == 1 assert enigma._gamma == 1
def test_turn_rotors(): list_of_rotors = [1, 1, 1] enigma = Enigma(list_of_rotors) enigma._turn_rotors() assert enigma._alpha == 2 assert enigma._beta == 1 assert enigma._gamma == 1