관리-도구
편집 파일: test_scalarprint.cpython-311.pyc
� �܋fSI � �p � d Z ddlZddlZddlZddlZddlmZ ddlZddl m Z mZmZm Z G d� d� � ZdS )z! Test printing of scalar types. � N)� TemporaryFile)�assert_�assert_equal� assert_raises�IS_MUSLc �� � e Zd Zd� Zd� Zd� Zd� Zd� Zej � ej � � � d� � d�� � d � � � Zd � Zd� ZdS ) �TestRealScalarsc � � ddddt j t j t j g}t j t j t j t j g}g d�g d�g d�g d�g d �g d �g d�g}t ||� � D ]}\ }}t ||� � D ]g\ }}d� t j |� � j t |� � � � }t t ||� � � � ||� � � �h�~d S )Ng g �� ���)�0.0r r r )�-0.0r r r )�1.0r r r )�-1.0r r r )�infr r r )�-infr r r )�nanr r r zfor str({}({})))�err_msg)�npr r �float16�float32�float64� longdouble�zip�format�dtype�name�reprr �str) �self�svals�styps�wanted�wants�val�want�styp�msgs �t/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/core/tests/test_scalarprint.py�test_strzTestRealScalars.test_str s � ��d�A�r�2�6�B�F�7�B�F�;����R�Z���R�]�C�� -� -� -� -� -� -� -� -� -� -� -� -� -� -� -� -� -� -� ,� ,� ,�.�� �f�e�,�,� @� @�J�E�3�!�%��/�/� @� @� ��d�'�.�.�r�x��~�~�/B�D��I�I�N�N���S���c���^�^�T�3�?�?�?�?�?� @� @� @� c � � d� } |d� � |d� � |d� � |d� � |d� � |d� � d S )Nc �� � t t t j | � � � � t | � � � � t t t j | � � � � t | � � � � t t t j | � � � � t | � � � � t t t j | � � � � t | � � � � d S �N)r r r r r )�vs r) �checkz2TestRealScalars.test_scalar_cutoffs.<locals>.check"