?????????? ????????? - ??????????????? - /usr/lib64/python3.9/site-packages/numpy/core/tests/__pycache__/test_print.cpython-39.pyc
???????
a z[ycQ � @ sJ d dl Z d dlZd dlZd dlmZmZ d dlmZ d dl m Z ejdej dejdiZ ej�dejejejg�d d � �Zej�dejejejg�dd� �Zej�dejejejg�d d� �Zej�dejejejg�dd� �Zddd�Zej�dejejejg�dd� �Zej�dejejejg�dd� �Zdd� ZG dd� de�ZdS )� N)�assert_�assert_equal)�CommaDecimalPointLocale)�StringIO�infz-inf�nan�tpc C s� dD ]&}t t| |��tt|��d| d� q| d�jdkr^t t| d��ttd��d| d� nd}t t| d��|d| d� dS ) z� Check formatting. This is only for the str function, and only for simple types. The precision of np.float32 and np.longdouble aren't the same as the python float precision. �r � ���g@��x�D�!Failed str formatting for type %s��err_msg� ��7y�AC� Z1e16�1e+16N)r �str�float�itemsize�r �x�ref� r �A/usr/lib64/python3.9/site-packages/numpy/core/tests/test_print.py�test_float_types s ���r c C s: t jt j t jfD ]"}tt| |��t| d| d� qdS )z� Check formatting of nan & inf. This is only for the str function, and only for simple types. The precision of np.float32 and np.longdouble aren't the same as the python float precision. r r N)�npr r r r �_REF)r r r r r �test_nan_inf_float% s �r c C s� dD ]�}t t| |��tt|��d| d� t t| |d ��tt|d ��d| d� t t| ||d ��tt||d ��d| d� q| d�jdkr�t t| d��ttd��d| d� nd}t t| d��|d| d� dS ) z�Check formatting of complex types. This is only for the str function, and only for simple types. The precision of np.float32 and np.longdouble aren't the same as the python float precision. r r r y �?r � � (1e+16+0j)N)r r �complexr r r r r �test_complex_types3 s$ ��&���r! �dtypec ! C s� t tjd�dt dtj�dt tj d�dt dtj �dt tjd�dt dtj�dt tj d�d t dtj �d t tjd�dt dtj�dt tj d�dt dtj �dt tjd�d t dtj�dt tj d�d t dtj �di}|�� D ]\}}tt| |��|� q�dS )z*Check inf/nan formatting of complex types.r z(inf+0j)Zinfjz (-inf+0j)z-infjr �(inf+1j)z(1+infj)� (-inf+1j)z(1-infj)z(nan+0j)Znanj�(nan+1j)z(1+nanj)N)r r r r �itemsr r )r"