A test that the machine is advancing rotors property

This commit is contained in:
Eryn Wells 2015-07-19 09:17:37 -07:00
parent b6b96ed770
commit 07073b9dc1
2 changed files with 38 additions and 2 deletions

View file

@ -43,7 +43,7 @@ class Machine {
return output
}
private func advanceRotors() {
func advanceRotors() {
var shouldAdvance = true // Always advance the first rotor
for rotor in rotors.reverse() {
if shouldAdvance {