
    sg:                     <    d Z ddlZddlmZmZ ddlmZmZ d Z	d Z
y)z
 Testing

    N)assert_array_equalassert_)squeeze_elementchars_to_stringsc                     t        j                  d      } t        t        j                  |       t	        |              t	        t        j                  dt
                    }t        t        |t
                     t	        t        j                  ddg            }t        t        |t         j                               t	        t        j                  dt         j                              }|j                  t         j                  k(  sJ y )N)      )r   r   dtype)f1fr   )npzerosr   squeezer   floatr   
isinstancendarrayemptyuint8r   )asq_intsq_sasq_emptys       W/var/www/html/venv/lib/python3.12/site-packages/scipy/io/matlab/tests/test_mio_utils.pytest_squeeze_elementr      s    
Arzz!}oa&89RXXe59:FJvu%&BHHU+?@EJubjj)*rxx28845H>>RXX%%%    c                     g d} t        j                  | d      }| D cg c]  }t        |       }}t        j                  |d      }t        t	        |      |       |j                  d      }|j                  d      }t        t	        |      |       |j                  d      }|j                  d      }t        t	        |      |       t        j                  |dd	
      }	t        t	        |	      |       t        j                  dggd      }
t        j                  dgd      }t        t	        |
      |       y c c}w )N)zlearn pythonzfast  zhere  U6r
   U1)   r!      )r!   r!   )r   r!   r!   r"   )r   r!   r!   F)r   order )r   arraylistr   r   reshape)stringsstr_arrscharschar_arrca2dsa2dca3dsa3d	char_arrfarrout_arrs               r   test_chars_stringsr5      s   6Ghhwd+G%&T!W&E&xxT*H'17;G$D??5!D'-t4I&D??7#D'-t4d#6I'	2G<
((RD6
&Chht4(G',g6 's   E)__doc__numpyr   numpy.testingr   r   scipy.io.matlab._mio_utilsr   r   r   r5    r   r   <module>r;      s     5 H&7r   