mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Remove sporadic duplicate useless lines. #772
This commit is contained in:
		
							parent
							
								
									3794d51cc7
								
							
						
					
					
						commit
						7d08796b0a
					
				
					 2 changed files with 11 additions and 2 deletions
				
			
		
							
								
								
									
										11
									
								
								t/geometry.t
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								t/geometry.t
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -2,7 +2,7 @@ use Test::More;
 | 
			
		|||
use strict;
 | 
			
		||||
use warnings;
 | 
			
		||||
 | 
			
		||||
plan tests => 21;
 | 
			
		||||
plan tests => 23;
 | 
			
		||||
 | 
			
		||||
BEGIN {
 | 
			
		||||
    use FindBin;
 | 
			
		||||
| 
						 | 
				
			
			@ -164,4 +164,13 @@ is Slic3r::Geometry::can_connect_points(@$points, $polygons), 0, 'can_connect_po
 | 
			
		|||
    ], 'polyline_lines';
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#==========================================================
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
    my $polyline = Slic3r::Polygon->new([0, 0], [10, 0], [5, 5]);
 | 
			
		||||
    my $result = $polyline->split_at_index(1);
 | 
			
		||||
    is ref($result), 'Slic3r::Polyline', 'split_at_index returns polyline';
 | 
			
		||||
    is_deeply $result, [ [10, 0], [5, 5], [0, 0], [10, 0] ], 'split_at_index';
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#==========================================================
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue