a
    hÝEbê  ã                   @   s€   d dl Z d dlZddlmZ d dlmZ ejje  ¡ dkdd�G dd	„ d	ej	ƒƒZ
ejje  ¡ dkdd�G d
d„ dej	ƒƒZdS )é    Né   )Úutil)Úassert_equalÚDarwinzVProne to error when run with numpy/f2py/tests on mac os, but not when run in isolation)Úreasonc                   @   s(   e Zd ZdZdZdjed�Zdd„ ZdS )ÚTestMultilineú.pyfÚ	multilinea  
python module {module}
    usercode '''
void foo(int* x) {{
    char dummy = ';';
    *x = 42;
}}
'''
    interface
        subroutine foo(x)
            intent(c) foo
            integer intent(out) :: x
        end subroutine foo
    end interface
end python module {module}
    ©Úmodulec                 C   s   t | j ¡ dƒ d S ©Né*   ©r   r   Zfoo©Úself© r   úe/home/ja/django-apps/lartica_env/lib/python3.9/site-packages/numpy/f2py/tests/test_semicolon_split.pyÚtest_multiline   s    zTestMultiline.test_multilineN)Ú__name__Ú
__module__Ú__qualname__ÚsuffixÚmodule_nameÚformatÚcoder   r   r   r   r   r      s   ñr   c                   @   s(   e Zd ZdZdZdjed�Zdd„ ZdS )ÚTestCallstatementr   Zcallstatementav  
python module {module}
    usercode '''
void foo(int* x) {{
}}
'''
    interface
        subroutine foo(x)
            intent(c) foo
            integer intent(out) :: x
            callprotoargument int*
            callstatement {{ &
                ; &
                x = 42; &
            }}
        end subroutine foo
    end interface
end python module {module}
    r
   c                 C   s   t | j ¡ dƒ d S r   r   r   r   r   r   Útest_callstatement>   s    z$TestCallstatement.test_callstatementN)r   r   r   r   r   r   r   r   r   r   r   r   r   #   s   îr   )ÚplatformZpytestÚ r   Znumpy.testingr   ÚmarkZskipifÚsystemZF2PyTestr   r   r   r   r   r   Ú<module>   s   
þ
þ