
    sh!                     f    S SK r  " S S\ R                  5      r\S:X  a  \ R                  " 5         gg)    Nc                        \ rS rSrS rS rSrg)TestExample   c                    ^ SS K nSSKJn  UR                  S/SS/S9nSmUU4S j5       nU" US   5        U R	                  U" US   5      S	5        g )
Nr   )njit      a1f8a2r   dtyper   r   c                 .   > SnUS   nTS   nX   X   -   $ )Nr   r   r	    )rec	fields_lcfield_name1field_name2	fields_gls       {/Users/tiagomarins/Projetos/claudeai/copy_bank/venv/lib/python3.13/site-packages/numba/tests/doc_examples/test_rec_array.pyget_field_sum>TestExample.test_documentation_example1.<locals>.get_field_sum   s+    $I#A,K#A,K#c&666       )numpynumbar   arrayassertEqual)selfnpr   arrr   r   s        @r   test_documentation_example1'TestExample.test_documentation_example1   s`    hhxl'ChD 			7 
	7 	c!fs1v.2r   c                    ^^ SS K nSSKJnJm  UR	                  S/SS/S9nSmUUU4S j5       nU" US   5        U R                  U" US   5      S	5        g )
Nr   )r   literal_unrollr   r   r   r   r   c                 8   > SnT" T5       H
  nXU   -  nM     U$ )Nr   r   )r   outfr   r)   s      r   r   >TestExample.test_documentation_example2.<locals>.get_field_sum!   s'    C#I.1v /Jr   r   )r   r    r   r)   r!   r"   )r#   r$   r   r%   r   r   r)   s        @@r   test_documentation_example2'TestExample.test_documentation_example2   s`    .hhxl'ChD 			 
	 	c!fs1v.2r   r   N)__name__
__module____qualname____firstlineno__r&   r.   __static_attributes__r   r   r   r   r      s    3&3r   r   __main__)unittestTestCaser   r0   mainr   r   r   <module>r9      s3    &3(## &3R zMMO r   