o
    :ήc                     @   s4   d dl Zd dlmZ d dlmZ dd Zdd ZdS )    N)safe_as_int)testingc                   C   s  t t td W d    n1 sw   Y  t t tddg W d    n1 s/w   Y  t t ttjd  W d    n1 sKw   Y  t t td W d    n1 sdw   Y  t t td W d    n1 s}w   Y  t t tdd W d    n1 sw   Y  t t tddgd W d    n1 sw   Y  t t ttjd d W d    n1 sw   Y  t t tdd W d    n1 sw   Y  t t tdd W d    d S 1 sw   Y  d S )Nffffff@?)r   r   )         )   gffffff@i!  g
ףp=
?g      ?)r   raises
ValueErrorr   npr_ r   r   M/tmp/pip-target-vg8gfxp4/lib/python/skimage/_shared/tests/test_safe_as_int.pytest_int_cast_not_possible   s@   


$r   c                   C   s   t tdddd t tdddd t tdddd t tg d	tjd
  t ttjg dg dg dg tjg dg dg dg  d S )Nr   g)\(?)atol   gffffffig33333D@*   )r
   r   g   VAW   r   )r
   r   i2VX r   r   )r   r   g0D   ?)r   r
   gh!)   	   g  `9wr   )r   r
   i)r   r   l9x )r   assert_equalr   assert_array_equalr   r   r   r   r   r   test_int_cast_possible   s   
r   )numpyr   skimage._shared.utilsr   skimage._sharedr   r   r   r   r   r   r   <module>   s
    