3
­?d]¤  ã               @   sb   d dl mZmZmZ 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 )
é    )ÚdivisionÚabsolute_importÚprint_functionN)Úassert_array_equalé   )Úutilc              G   s   t jjt jjtƒf|  Ž S )N)ÚosÚpathÚjoinÚdirnameÚ__file__)Úa© r   ú=/tmp/pip-build-op5p2y5_/numpy/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dddgdd�j}| jjj||jd ƒ\}}t||ƒ |jƒ }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   )Ú
__future__r   r   r   r   r&   Znumpy.testingr   Znumpyr   Ú r   r   ZF2PyTestr   r   r   r   r   Ú<module>   s   