Cosmetics (because the test is trivial).
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				continuous-integration/drone/pr Build is failing
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	continuous-integration/drone/pr Build is failing
				
			This commit is contained in:
		
							parent
							
								
									28c78325fe
								
							
						
					
					
						commit
						67c07ff2ce
					
				
					 2 changed files with 15 additions and 1 deletions
				
			
		|  | @ -2,12 +2,14 @@ package ch.fritteli.labyrinth.generator.renderer.text; | |||
| 
 | ||||
| import lombok.AccessLevel; | ||||
| import lombok.AllArgsConstructor; | ||||
| import lombok.EqualsAndHashCode; | ||||
| import lombok.NoArgsConstructor; | ||||
| import lombok.experimental.FieldDefaults; | ||||
| 
 | ||||
| @AllArgsConstructor | ||||
| @EqualsAndHashCode | ||||
| @FieldDefaults(level = AccessLevel.PRIVATE) | ||||
| @NoArgsConstructor | ||||
| @AllArgsConstructor | ||||
| class CharDefinition { | ||||
|     // ─ | ||||
|     static final String HORIZONTAL = "\u2500"; | ||||
|  |  | |||
|  | @ -44,4 +44,16 @@ class CharDefinitionTest { | |||
|         assertEquals("┤", new CharDefinition(true, true, true, false, true).toString()); | ||||
|         assertEquals("┼", new CharDefinition(true, true, true, true, true).toString()); | ||||
|     } | ||||
| 
 | ||||
|     @Test | ||||
|     void testBuilderMethods() { | ||||
|         assertEquals(new CharDefinition(true, false, false, false, false), new CharDefinition().up()); | ||||
|         assertEquals(new CharDefinition(false, true, false, false, false), new CharDefinition().down()); | ||||
|         assertEquals(new CharDefinition(false, false, true, false, false), new CharDefinition().left()); | ||||
|         assertEquals(new CharDefinition(false, false, false, true, false), new CharDefinition().right()); | ||||
|         assertEquals(new CharDefinition(false, false, false, false, true), new CharDefinition().solution()); | ||||
|         assertEquals(new CharDefinition(true, true, false, false, false), new CharDefinition().vertical()); | ||||
|         assertEquals(new CharDefinition(false, false, true, true, false), new CharDefinition().horizontal()); | ||||
|         assertEquals(new CharDefinition(true, true, true, true, true), new CharDefinition().vertical().horizontal().solution()); | ||||
|     } | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue