
    h                     :    S SK r S SKJr  SSKJr   " S S\5      rg)    N)TestCase   )_indent_chunkc                   >    \ rS rSrS rS rS rS rS rS r	S r
S	rg
)
TestIndent   c                 |   [        S5       H  n[        R                  " USU-  5      nUR                  5        H8  nU R	                  US:H  =(       d    UR                  5       [        U5      5        M:     U R                  US9   [        XS9nU R                  XF5        S S S 5        M     g ! , (       d  f       M  = f)N     )indentation)indentation_length)
rangetextwrapindent
splitlines
assertTruestripreprsubTestr   assertEqual)selfchunkexpectedr   expected_indentedlineresults          X/var/www/fran/franai/venv/lib/python3.13/site-packages/Cython/Compiler/Tests/TestCode.py_test_indentationsTestIndent._test_indentations   s     9K (#:K L)446
 :djjlDJG 7 +6&uM  !2; 76 % 76s   B,,
B;	c                 (    U R                  SS5        g )Nr   r   r   s    r   test_indent_emptyTestIndent.test_indent_empty   s    B'    c                     U R                  SS5        U R                  SS5        U R                  SS5        U R                  SS5        U R                  SS5        g )N
z

z


z 
 
z
  
 
    
z



r"   r#   s    r   test_indent_empty_lines"TestIndent.test_indent_empty_lines   sS    d+//0 16:r&   c                 (    U R                  SS5        g )Nabcr"   r#   s    r   test_indent_one_lineTestIndent.test_indent_one_line   s    u-r&   c                 .    SnSnU R                  X5        g )Nz
            x = 1
            if x == 2:
                print("False")
            else:
                print("True")
        z=
x = 1
if x == 2:
    print("False")
else:
    print("True")
r"   r   r   r   s      r   test_indent_chunkTestIndent.test_indent_chunk   s      	0r&   c                 .    SnSnU R                  X5        g )N
            x = 1

            if x == 2:
                print("False")
            else:
                print("True")
        >
x = 1

if x == 2:
    print("False")
else:
    print("True")
r"   r0   s      r   test_indent_empty_line!TestIndent.test_indent_empty_line0   s      	0r&   c                 t    SR                  SS9nSUS'   SR                  U5      nSnU R                  X#5        g )Nr4   T)keependsz            
r   r   r5   )r   joinr   )r   linesr   r   s       r   test_indent_empty_line_unclean)TestIndent.test_indent_empty_line_uncleanC   sI     JJ% 	 $a 	0r&    N)__name__
__module____qualname____firstlineno__r   r$   r)   r-   r1   r6   r<   __static_attributes__r>   r&   r   r   r      s%    	<(;.1"1&1r&   r   )r   unittestr   Coder   r   r>   r&   r   <module>rF      s       P1 P1r&   