
    h)                     B    S SK rS SKrS SKJr  S SKJr   " S S\5      rg)    N)Base)expectc                       \ rS rSr\S
S j5       r\S
S j5       r\S
S j5       r\S
S j5       r\S
S j5       r	\S
S j5       r
S	rg)StringNormalizer   Nc                      [         R                  " SS/5      R                  [        5      n U n[        R
                  R                  SS/S/SS9n[        UU /U/SS	9  g )
Nmondaytuesdayr   xy   )inputsoutputsis_case_sensitive+test_strnormalizer_nostopwords_nochangecaser   r   namenparrayastypeobjectonnxhelper	make_noder   )inputoutputnodes      f/var/www/fran/franai/venv/lib/python3.13/site-packages/onnx/backend/test/case/node/stringnormalizer.pyexport_nostopwords_nochangecase0StringNormalizer.export_nostopwords_nochangecase   sj    (I./66v> {{$$5E	 % 
 	7H>		
    c                     [         R                  " / SQ5      R                  [        5      n [         R                  " / SQ5      R                  [        5      nS/n[        R
                  R                  SS/S/SUS9n[        UU /U/S	S
9  g )Nr	   r
   	wednesdaythursdayr
   r%   r&   r	   r   r   r   r   )r   r   r   	stopwords<test_strnormalizer_export_monday_casesensintive_nochangecaser   r   r   r   r(   r   s       r   )export_monday_casesensintive_nochangecase:StringNormalizer.export_monday_casesensintive_nochangecase    s    GHOOPVW>?FFvNJ	{{$$5E % 
 	7HO		
r"   c            	         [         R                  " / SQ5      R                  [        5      n [         R                  " / SQ5      R                  [        5      nS/n[        R
                  R                  SS/S/SSUS	9n[        UU /U/S
S9  g )Nr$   r'   r	   r   r   r   LOWERr   r   r   case_change_actionr   r(   5test_strnormalizer_export_monday_casesensintive_lowerr   r   r*   s       r   "export_monday_casesensintive_lower3StringNormalizer.export_monday_casesensintive_lower4       GHOOPVW>?FFvNJ	{{$$5E& % 
 	7HH		
r"   c            	         [         R                  " / SQ5      R                  [        5      n [         R                  " / SQ5      R                  [        5      nS/n[        R
                  R                  SS/S/SSUS	9n[        UU /U/S
S9  g )Nr$   )TUESDAY	WEDNESDAYTHURSDAYr	   r   r   r   UPPERr   r/   5test_strnormalizer_export_monday_casesensintive_upperr   r   r*   s       r   "export_monday_casesensintive_upper3StringNormalizer.export_monday_casesensintive_upperI   r4   r"   c            	         [         R                  " SS/5      R                  [        5      n [         R                  " S/5      R                  [        5      nS/n[        R
                  R                  SS/S/SSUS9n[        UU /U/S	S
9  g )Nr	    r   r   r   r9   r   r/   -test_strnormalizer_export_monday_empty_outputr   r   r*   s       r   export_monday_empty_output+StringNormalizer.export_monday_empty_output^   s    (H-.55f=2$&&v.J	{{$$5E& % 
 	7H@		
r"   c                  \   [         R                  " / SQ5      R                  [        5      R	                  SS/5      n [         R                  " / SQ5      R                  [        5      R	                  SS/5      nS/n[
        R                  R                  SS/S	/S
US9n[        UU /U/SS9  g )N)Mondayr
   r%   rC   r
   r%   r      )r6   r7   r6   r7      r	   r   r   r   r9   )r   r   r0   r(   :test_strnormalizer_export_monday_insensintive_upper_twodimr   )	r   r   r   r   reshaper   r   r   r   r*   s       r   'export_monday_insensintive_upper_twodim8StringNormalizer.export_monday_insensintive_upper_twodims   s     HHT VF^WaV_ 	 HHEFVF^WaV_ 	
 J	{{$$5E& % 
 	7HM		
r"    )returnN)__name__
__module____qualname____firstlineno__staticmethodr    r+   r2   r;   r@   rH   __static_attributes__rJ   r"   r   r   r      sx    
 
$ 
 
& 
 
( 
 
( 
 
( 
 
r"   r   )numpyr   r   onnx.backend.test.case.baser   onnx.backend.test.case.noder   r   rJ   r"   r   <module>rU      s!   
   , .G
t G
r"   