3
ÌœŸW²  ã               @   sB   d dl Z d dlZd dlmZ G dd„ de jƒZedkr>e jƒ  dS )é    N)Úconvert_to_arraysc               @   s   e Zd Zdd„ ZdS )ÚTestSourcesc             C   sZ   t dddtjdƒtjdƒtjdgƒfƒ}tdd„ |D ƒƒ}| jt|ƒdƒ | jd
|ƒ d	S )z4Test if the convert_to_arrays routine works properlyé   é   é   é   é   é   c             s   s   | ]}|j V  qd S )N)Úshape)Ú.0Úx© r   ú\/home/yuhw/wc/wire-cell-python/venv/lib/python3.6/site-packages/mayavi/tests/test_sources.pyú	<genexpr>   s    z5TestSources.test_convert_to_arrays.<locals>.<genexpr>N)r   )	r   ÚnpÚfloatÚfloat64ÚarrayÚsetÚassertEqualÚlenÚassertIn)ÚselfÚvaluesZall_dimsr   r   r   Útest_convert_to_arrays   s
    &z"TestSources.test_convert_to_arraysN)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r      s   r   Ú__main__)	ÚunittestÚnumpyr   Zmayavi.tools.sourcesr   ÚTestCaser   r   Úmainr   r   r   r   Ú<module>   s
   