| Server IP : 46.62.235.243 / Your IP : 216.73.216.163 Web Server : Apache/2.4.58 (Ubuntu) System : Linux Linkabili3Dicembre 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/gyp/__pycache__/ |
Upload File : |
�
�"Kb� � � � d Z ddlZddlZddlZ G d� dej
� Z G d� dej
� Zedk( r ej � yy)z"Unit tests for the common.py file.� Nc � � e Zd Zd� Zd� Zy)�TestTopologicallySortedc � �� ddgg dgdgd���fd�}| j t j j �j � |� g d�� y)zATest that sorting works on a valid graph with one possible order.�b�c�d��ar r r c � �� t �| � S �N��tuple��node�graphs ��1/usr/lib/python3/dist-packages/gyp/common_test.py�GetEdgez3TestTopologicallySorted.test_Valid.<locals>.GetEdge � �� �
�5��;�
�� )r
r r r N)�assertEqual�gyp�common�TopologicallySorted�keys��selfr r s @r �
test_Validz"TestTopologicallySorted.test_Valid sP �� � �3�Z�
��U��U�
�E� ���� �j�j�$�$�U�Z�Z�\�7�;��r c �� �� dgdgdgdgd���fd�}| j t j j t j j �j � |� y)z3Test that an exception is thrown on a cyclic graph.r r r r
r c � �� t �| � S r r
r s �r r z3TestTopologicallySorted.test_Cycle.<locals>.GetEdge% r r N)�assertRaisesr r �
CycleErrorr r r s @r �
test_Cyclez"TestTopologicallySorted.test_Cycle sW �� � �U��U��U��U�
�E� ���� �j�j���S�Z�Z�;�;��j�j�l�G�r N)�__name__�
__module__�__qualname__r r"