A test that the machine is advancing rotors property
This commit is contained in:
		
							parent
							
								
									b6b96ed770
								
							
						
					
					
						commit
						07073b9dc1
					
				
					 2 changed files with 38 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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 {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue