a
    �¥»ab  ã                   @   sN   d dl Z d dlZd dlmZ d dlZddlmZ dd„ ZG dd„ dej	ƒZ
dS )	é    N)Úassert_array_equalé   )Úutilc                  G   s   t jjt j t¡f|  Ž S )N)ÚosÚpathÚjoinÚdirnameÚ__file__)Úa© r   úV/home/yuhw/wc/pochoir/venv/lib/python3.9/site-packages/numpy/f2py/tests/test_string.pyÚ_path	   s    r   c                   @   s*   e Zd ZedddƒgZejjdd„ ƒZdS )Ú
TestStringÚsrcÚstringzchar.f90c                 C   s^   t jg d¢dd�j}| jj ||jd ¡\}}t||ƒ | ¡ }d|dd d …f< t||ƒ d S )N)ÚabZcdZefÚc)Zdtyper   ZAAA)	ÚnpÚarrayÚTÚmoduleZ	char_testZchange_stringsÚshaper   Úcopy)ÚselfÚstringsÚinpÚoutÚexpectedr   r   r   Ú	test_char   s    
zTestString.test_charN)	Ú__name__Ú
__module__Ú__qualname__r   ÚsourcesÚpytestÚmarkZslowr   r   r   r   r   r      s   r   )r   r#   Znumpy.testingr   Únumpyr   Ú r   r   ZF2PyTestr   r   r   r   r   Ú<module>   s   