+
    VBi                     f    ^ RI t ^ RIHt ^RIHt ^RIHtHtHt  ! R R]4      t	 ! R R]4      t
R# )	    N)TestCase)Naming)_indent_chunkUtilityCodeprocess_utility_ccodec                   J   a  ] tR t^t o R tR tR tR tR tR t	R t
RtV tR	# )

TestIndentc                   \        ^4       F  p\        P                  ! VRV,          4      pVP                  4        F9  pT P	                  VR8H  ;'       g    VP                  4       \        V4      4       K;  	  V P                  VR7      ;_uu_ 4        \        WR7      pV P                  WF4       RRR4       K  	  R#   + '       g   i     K  ; i)     )indentation)indentation_lengthN)
rangetextwrapindent
splitlines
assertTruestripreprsubTestr   assertEqual)selfchunkexpectedr   expected_indentedlineresults   &&&    C/usr/lib/python3.14/site-packages/Cython/Compiler/Tests/TestCode.py_test_indentationsTestIndent._test_indentations   s     9K (#:K L)446
 : :djjlDJG 7 +66&uM  !2; 76 % 766s   C  Cc                *    V P                  R R 4       R# )r   Nr    r   s   &r   test_indent_emptyTestIndent.test_indent_empty   s    B'    c                    V P                  R R 4       V P                  RR4       V P                  RR4       V P                  RR4       V P                  RR4       R# )
z
  
 
    
N

z


z 
 
z



r#   r$   s   &r   test_indent_empty_lines"TestIndent.test_indent_empty_lines   sS    d+//0 16:r'   c                *    V P                  R R 4       R# )abcNr#   r$   s   &r   test_indent_one_lineTestIndent.test_indent_one_line   s    u-r'   c                0    R pRpV P                  W4       R# )z
            x = 1
            if x == 2:
                print("False")
            else:
                print("True")
        z=
x = 1
if x == 2:
    print("False")
else:
    print("True")
Nr#   r   r   r   s   &  r   test_indent_chunkTestIndent.test_indent_chunk    s      	0r'   c                0    R pRpV P                  W4       R# )
            x = 1

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

if x == 2:
    print("False")
else:
    print("True")
Nr#   r2   s   &  r   test_indent_empty_line!TestIndent.test_indent_empty_line1   s      	0r'   c                |    R P                  RR7      pRV^&   RP                  V4      pRpV P                  W#4       R# )r6   T)keependsz            
r   r7   N)r   joinr    )r   linesr   r   s   &   r   test_indent_empty_line_unclean)TestIndent.test_indent_empty_line_uncleanD   sI     JJ% 	 $a 	0r'    N)__name__
__module____qualname____firstlineno__r    r%   r+   r/   r3   r8   r>   __static_attributes____classdictcell____classdict__s   @r   r	   r	      s-     	<(;.1"1&1 1r'   r	   c                   N   a  ] tR t^Zt o R tR	V 3R lR lltR tR tR tRt	V t
R# )
TestUtilityCodeProcessingc                Z    \        4       p\        VR V4      w  r4V P                  V4       V# )N)r   r   assertFalse)r   codeutility_codeformatted_codeis_module_specifics   &&   r   _process"TestUtilityCodeProcessing._process[   s1    "}-B<QUW[-\*+,r'   c                &   < V ^8  d   QhRS[ RS[ /# )   rM   r   )str)formatrH   s   "r   __annotate__&TestUtilityCodeProcessing.__annotate__a   s     . .# . .r'   c                    V'       d   \         P                  ! V4      pVP                  4       R ,           pV P                  V4      pV P	                  WB4       R# )r*   N)r   dedentr   rQ   r   )r   rM   r   rZ   	formatteds   &&&& r   assert_formatted_code/TestUtilityCodeProcessing.assert_formatted_codea   s@    x0H>>#f,MM$'	-r'   c                .    V P                  R RRR7       R# )z
        Some Text and a CSTRING("""
        spanning "multiple" 'lines'.
        Really.
        """);   # end of C string
        z
        Some Text and a "\n"
        "        spanning \042multiple\042 'lines'.\n"
        "        Really.\n"
        "        \n"
        ;   # end of C string
        T)r   rZ   N)r\   r$   s   &r   test_format_cstring-TestUtilityCodeProcessing.test_format_cstringh   s$    "" $  	# 	r'   c           
         V P                  R R\        P                   R\        P                   R\        P                   R2R7       R# )zB
        CGLOBAL(name)
        NAMED_CGLOBAL(empty_tuple)
        	
        z->name
        ->r   N)r\   r   modulestateglobal_cnameempty_tupler$   s   &r   test_cglobal&TestUtilityCodeProcessing.test_cglobalx   sS    "" $			'	'( )			'	'(6+=+=*> ?		 	# 	r'   c                   V P                  R R\        P                   R\        P                   \        P                   R\        P                   R\        P                   R\        P                   R\        P                   R\        P                   R\        P                   R\        P
                   R\        P                   R\        P                   R\        P                   R\        P                   R2R7       R# )z
        EMPTY(tuple)EMPTY(bytes)
        EMPTY(tuple);EMPTY(bytes)
        EMPTY(unicode)
        EMPTY(bytes)
        EMPTY(tuple)
        rb   rc   ;rd   N)r\   r   re   rf   empty_bytesempty_unicoder$   s   &r   test_empty_builtin,TestUtilityCodeProcessing.test_empty_builtin   s    "" $			'	'(6+=+=*>v?]?]>^^`agasas`t u			'	'(6+=+=*>a@^@^?__abhbtbtau v			'	'(6+?+?*@ A			'	'(6+=+=*> ?			'	'(6+=+=*> ?	 	# 	r'   r@   N)F)rA   rB   rC   rD   rQ   r\   r_   rg   rm   rE   rF   rG   s   @r   rJ   rJ   Z   s(     . .  r'   rJ   )r   unittestr   r   r   Coder   r   r   r	   rJ   r@   r'   r   <module>rq      s/       D DP1 P1f6 6r'   