U
    ZÊ¹j‘  ã                   @   s8   d dl mZmZmZmZ d dlmZ dd„ Zdd„ ZdS )é    )ÚcrtÚcrt1Úcrt2Úsolve_congruence)Úraisesc                  C   s�   ddd„} | dddgdddgdƒ | dddgdddgdƒ | dddgd	d	d	gd	d
ƒ | dddgd	d	d	gddƒ t ddgddgd
d�dksŒt‚d S )NFc                 S   sH   t | ||ƒd |kst‚t| ƒ\}}}t| |||||ƒ||fksDt‚d S )Nr   )r   ÚAssertionErrorr   r   )ÚmÚvÚrÚ	symmetricÚmmÚeÚs© r   ú_/var/www/html/bwave/python/venv/lib/python3.8/site-packages/sympy/ntheory/tests/test_modular.pyÚmcrt   s    ztest_crt.<locals>.mcrté   é   é   r   é   éÿÿÿÿTé   i�  i^  i+  é…   )r   )i«!ÿÿipÀ )F)r   r   )r   r   r   r   Útest_crt   s    
r   c                   C   sr  t ttdddgdddgƒƒŽ dks&t‚t ttdddgdddgƒƒŽ d ksLt‚t ttdddgd	d
dgƒƒŽ dksrt‚t ttdddgd	d
dgƒƒŽ dks˜t‚t ttddddgd	d
d
dgƒƒŽ d ksÂt‚t ttddddgd	d
d
dgƒƒŽ dksìt‚t ttddddgd	d
ddgƒƒŽ dk�st‚t ttddddgd	d
ddgƒƒŽ dk�sDt‚t ttddƒƒŽ d k�s`t‚ttdd„ ƒ d S )Nr   é   r   é   é#   é   )i·  iä  é   é   é   )é¬   é  iöÿÿÿéýÿÿÿiñÿÿÿr   éûÿÿÿ)iC  r"   é   )iN	  i  )r   r   r   )r   r   r   c                   S   s   t ttdddgdddgƒƒŽ S )Nr   r   r   g333333(@r   r   )r   ÚlistÚzipr   r   r   r   Ú<lambda>"   ó    ztest_modular.<locals>.<lambda>)r   r&   r'   r   r   Ú
ValueErrorr   r   r   r   Útest_modular   s2    &&&&*ÿÿÿÿ
ÿÿ
 ÿr+   N)	Zsympy.ntheory.modularr   r   r   r   Zsympy.testing.pytestr   r   r+   r   r   r   r   Ú<module>   s   