
    _-Ph                     B    d Z ddlmZ ddlmZmZ  G d de          ZdS )zTest basic mesh construction.    )regular_triangle_mesh)TestCaseassert_equalc                        e Zd Zd Zd Zd ZdS )TestRegularTriangleMeshc                 d    	 t          dd           t          d          # t          $ r Y d S w xY w)N   r   z0regular_triangle_mesh(1,0) should throw an error)r   	Exception
ValueError)selfs    ]/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/pyamg/gallery/tests/test_mesh.pytest_1x1z TestRegularTriangleMesh.test_1x1   sM    	P!!Q''' NOOO  	 	 	DD	s   ! 
//c                     t          dd          \  }}t          |ddgddgddgddgg           t          |g dg dg           d S )N                 ?)r      r   )r   r	   r   r   r   r   VertE2Vs      r   test_2x2z TestRegularTriangleMesh.test_2x2   s{    )!Q//	cTRHHHH& 	' 	' 	'
 	S999$99& 	' 	' 	' 	' 	'    c           
          t          dd          \  }}t          |ddgddgddgddgddgddgg           t          |g dg dg dg d	g           d S )
Nr   r   r   g      ?r   )r      r   )r	      r   )r   r	   r   )r	   r   r   r   r   s      r   test_3x2z TestRegularTriangleMesh.test_3x2   s    )!Q//	cTRH "IHH "IH& 	' 	' 	' 	S999$99$99$99& 	' 	' 	' 	' 	'r   N)__name__
__module____qualname__r   r   r    r   r   r   r      sD        P P P	' 	' 	'' ' ' ' 'r   r   N)__doc__pyamg.gallery.meshr   numpy.testingr   r   r   r!   r   r   <module>r%      si    # # 4 4 4 4 4 4 0 0 0 0 0 0 0 0!' !' !' !' !'h !' !' !' !' !'r   