fixed bug in TextOutput.java
This commit is contained in:
		
							parent
							
								
									04647a5934
								
							
						
					
					
						commit
						fd3c7a60a8
					
				| 
						 | 
				
			
			@ -99,7 +99,7 @@ public class TextOutput {
 | 
			
		|||
                    System.out.print(word);
 | 
			
		||||
                    if(!(currentWordNumber == lastWordNumber)) {
 | 
			
		||||
                        System.out.print(" ");
 | 
			
		||||
                        currentLength = word.length();
 | 
			
		||||
                        currentLength = word.length() + 1;
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -27,5 +27,9 @@ class TextOutputTest {
 | 
			
		|||
    @Test
 | 
			
		||||
    public void print() {
 | 
			
		||||
        textOutput.print(text);
 | 
			
		||||
        System.out.println("fertig");
 | 
			
		||||
        textOutput.formatRaw();
 | 
			
		||||
        textOutput.print(text);
 | 
			
		||||
        System.out.println("fertig");
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
		Reference in New Issue