
    Ae	                     \    d dl mZ  G d de      Zedk(  rd dlZ ej
                          yy)    )
CythonTestc                   T    e Zd Zd Zd Zd Zd Zd Zd Zd Z	d Z
d	 Zd
 Zd Zd Zy)TestCodeWriterc                 Z    | j                  || j                  |      j                         y )N)
assertCodefragmentroot)selfcodestrs     ;lib/python3.12/site-packages/Cython/Tests/TestCodeWriter.pytzTestCodeWriter.t   s    w!7!<!<=    c                 &    | j                  d       y )Nzw
                    print x, y
                    print x + y ** 2
                    print x, y, z,
               r   r
   s    r   
test_printzTestCodeWriter.test_print   s      	r   c                 &    | j                  d       y )Nzif x:
    passr   r   s    r   test_ifzTestCodeWriter.test_if   s    !"r   c                 &    | j                  d       y )Na   
                    if x:
                        pass
                    elif y:
                        pass
                    elif z + 34 ** 34 - 2:
                        pass
                    else:
                        pass
                r   r   s    r   test_ifelifelsezTestCodeWriter.test_ifelifelse   s     	 		r   c                 &    | j                  d       y )Nz
                    def f(x, y, z):
                        pass
                    def f(x = 34, y = 54, z):
                        pass
               r   r   s    r   test_defzTestCodeWriter.test_def*   s      	r   c                 &    | j                  d       y )Nz8def f(unsigned long long long long long int y):
    passr   r   s    r   test_longness_and_signednessz+TestCodeWriter.test_longness_and_signedness2   s    KLr   c                 &    | j                  d       y )Nz#def f(signed short int y):
    passr   r   s    r   test_signed_shortz TestCodeWriter.test_signed_short5   s    67r   c                 &    | j                  d       y )Nz+def f(int x, unsigned long int y):
    passr   r   s    r   test_typed_argszTestCodeWriter.test_typed_args8   s    >?r   c                 &    | j                  d       y )Nzh
                    cdef int hello
                    cdef int hello = 4, x = 3, y, z
                r   r   s    r   test_cdef_varzTestCodeWriter.test_cdef_var;   s      	r   c                 &    | j                  d       y )Nz
                    for x, y, z in f(g(h(34) * 2) + 23):
                        print x, y, z
                    else:
                        print 43
                r   r   s    r   test_for_loopzTestCodeWriter.test_for_loopA   s      	r   c                 &    | j                  d       y )Nzx += 43r   r   s    r   test_inplace_assignmentz&TestCodeWriter.test_inplace_assignmentI   s    zr   c                 &    | j                  d       y )Nza.xr   r   s    r   test_attributezTestCodeWriter.test_attributeL   s    vr   N)__name__
__module____qualname__r   r   r   r   r   r   r   r   r    r"   r$   r&    r   r   r   r      s@    >#
M8@r   r   __main__N)Cython.TestUtilsr   r   r'   unittestmainr*   r   r   <module>r/      s4    'JZ JX zHMMO r   