U
    Dvf                     @   s&   d dl T ddlZedZdd ZdS )   )*    NzfontTools.varLib.interpolatablec                 C   s  t | j}d }d}d}|dk}|sF| j}|j}t||\}	}
}|
|k}|sn| j}|j}t||\}}}||k}|s|sdd |D }t||\}}}||k}|sdd |D }t||\}}}||k}|s|
| || k r|	}|
}|}n|}|}|}|r|| nd}td| ||fS )Nr   r   c                 S   s$   g | ]}|d   f|dd  qS r   r   N .0mr   r   S/tmp/pip-unpacked-wheel-qlge9rch/fontTools/varLib/interpolatableTestContourOrder.py
<listcomp>/   s     z&test_contour_order.<locals>.<listcomp>c                 S   s$   g | ]}|d   f|dd  qS r   r   r   r   r   r	   r
   7   s     z test-contour-order: tolerance %g)lenZcontrolVectorsZmatching_for_vectorsZgreenVectorslogdebug)Zglyph0Zglyph1nZmatchingZmatching_costZidentity_costdoneZ	m0ControlZ	m1ControlZmatching_controlZmatching_cost_controlZidentity_cost_controlZm0GreenZm1GreenZmatching_greenZmatching_cost_greenZidentity_cost_greenZm1ControlReversedZmatching_control_reversedZmatching_cost_control_reversedZidentity_cost_control_reversedZm1GreenReversedZthis_tolerancer   r   r	   test_contour_order   sr    	
r   )ZinterpolatableHelperslogging	getLoggerr   r   r   r   r   r	   <module>   s   
