
    `i!                     b    d dl Z  G d de j                  Zedk    r e j                     dS dS )    Nc                       e Zd Zd Zd ZdS )TestExamplec                     dd l }ddlm} |                    dgddg          }d|fd            } ||d                    |                      ||d                   d	           d S )
Nr   )njit      a1f8a2r   dtyper   r   c                 J    d}|d         }d         }| |         | |         z   S )Nr   r   r    )rec	fields_lcfield_name1field_name2	fields_gls       {/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/numba/tests/doc_examples/test_rec_array.pyget_field_sumz>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_example1z'TestExample.test_documentation_example1   s    hhxl'ChDD 			7 	7 	7 	7 
	7 	c!fs1v..22222r   c                     dd l }ddlm}m |                    dgddg          }d|fd            } ||d                    |                      ||d                   d	           d S )
Nr   )r   literal_unrollr   r
   r   r   r   c                 >    d}           D ]}|| |         z  }|S )Nr   r   )r   outfr   r&   s      r   r   z>TestExample.test_documentation_example2.<locals>.get_field_sum!   s5    C#^I..  s1vJr   r   )r   r   r   r&   r   r    )r!   r"   r   r#   r   r   r&   s        @@r   test_documentation_example2z'TestExample.test_documentation_example2   s    ........hhxl'ChDD 			 	 	 	 	 
	 	c!fs1v..22222r   N)__name__
__module____qualname__r$   r*   r   r   r   r   r      s2        3 3 3&3 3 3 3 3r   r   __main__)unittestTestCaser   r+   mainr   r   r   <module>r2      sb    &3 &3 &3 &3 &3(# &3 &3 &3R zHMOOOOO r   