
    h                     ~    S SK r S SKJr  Sr\" \" \R                  5       5      5      r " S S\ R                  5      r
g)    N)StringIOTreez
cdef int spam                   # line 1

cdef ham():
    a = 1
    b = 2
    c = 3
    d = 4

def eggs():
    pass

cpdef bacon():
    print spam
    print 'scotch'
    print 'tea?'
    print 'or coffee?'          # line 16
c                   :    \ rS rSrS rS rS rS	S jrS	S jrSr	g)
TestStringIOTree   c                 8    [         R                  " 5       U l        g N)
stringtreer   treeselfs    W/var/www/fran/franai/venv/lib/python3.13/site-packages/Cython/Tests/TestStringIOTree.pysetUpTestStringIOTree.setUp   s    ++-	    c                 F    U R                   R                  5       (       a   eg r   )r
   
allmarkersr   s    r   test_markersTestStringIOTree.test_markers   s    99'')))))r   c           	          U R                  S5        U R                  R                  5       nU R                  S5        U R                  R                  5       nU R                  S5        UR                  5       nU R                  SUS9  UR                  5       nU R                  SUS9  U R                  SUS9  U R                  SUS9  UR                  5       nU R                  S	US9  U R                  S
US9  U R                  SUS9  U R	                  U R                  R                  5       [        [        SS5      5      5        U R	                  [        R                  5       U R                  R                  5       R                  5       5        g )N)         )      )         )      r
         	      
      r      )write_linesr
   insertion_point
write_lineassertEqualr   listrangecodestripgetvalue)r   line_4_to_6_insertion_pointline_9_to_13_insertion_pointline_4_insertion_pointline_9_to_12_insertion_pointline_10_insertion_points         r   test_insertionTestStringIOTree.test_insertion"   sQ   #&*ii&?&?&A# '+yy'@'@'B$&!<!L!L!N&AB )88: 	%!=> 67 <=">"N"N"P!=>!89!=>--/eArl1CDtyy'9'9';'A'A'CDr   Nc                 4    U H  nU R                  X2S9  M     g )Nr    )r*   )r   linenosr
   linenos       r   r(   TestStringIOTree.write_lines;   s    FOOFO. r   c                     Uc  U R                   nUR                  R                  U5        UR                  [        U   S-   5        g )N
)r
   markersappendwritelinemap)r   r:   r
   s      r   r*   TestStringIOTree.write_line?   s7    <99DF#

76?T)*r   r    r   )
__name__
__module____qualname____firstlineno__r   r   r6   r(   r*   __static_attributes__ r   r   r   r      s    .*E2/+r   r   )unittestCythonr   r	   r.   dict	enumerate
splitlinesrA   TestCaser   rH   r   r   <module>rO      s<     -& y*+
,)+x(( )+r   