o
    թZh
                     @   sF   d dl Z d dlZd dlZd dlmZmZ d dlmZ	 G dd dZ
dS )    N)	DataFrameSeriesc                   @   s   e Zd Zdd ZdS )
TestMatmulc                 C   s  t tjddg dd}ttjddg dg ddj}t||}t t	|j
|j
g dd}t|| t|j|}t t	|jj
|jj
g dd}t|| t||}t	|j
|j
}t|| t|j
|}t	|j
|j
}t|| t|j
 |}t	|j
|j
}t|| t|jj
|}t	|jj
|j
}t|| t|jj
 |}t	|jj
|j
}t|| t|j|d< t|j|}t t	|jj
|jj
g dd}t|| |t}t|j|}t t	|jj
|jj
g dd}t|| d	}tjt|d
 |	|j
d d  W d    n	1 s.w   Y  d}tjt|d
 |	|j W d    d S 1 sOw   Y  d S )N      )pqrs)index)   r   )123)r   columnsr   z,Dot product shape mismatch, \(4,\) vs \(3,\))matchr   zmatrices are not aligned)r   nprandomZdefault_rngZstandard_normalr   ToperatormatmuldotvaluestmZassert_series_equalZassert_almost_equaltolistintr   ZastypepytestZraises	Exception
ValueError)selfabresultexpectedmsg r%   ^/var/www/html/lang_env/lib/python3.10/site-packages/pandas/tests/series/methods/test_matmul.pytest_matmul   s^     
 $zTestMatmul.test_matmulN)__name__
__module____qualname__r'   r%   r%   r%   r&   r      s    r   )r   numpyr   r   Zpandasr   r   Zpandas._testingZ_testingr   r   r%   r%   r%   r&   <module>   s    