관리-도구
편집 파일: test_scalarmath.cpython-37.pyc
B ��Fd�a � @ s� d dl mZmZmZ d dlZd dlZd dlZd dlZd dlZ d dl mZ d dlm Z mZmZmZmZmZmZmZmZmZ e je je je je je je je je je j e j!e j"e j#e j$e j%e j&e j'gZ(e j)�*� Z+G dd� de �Z,G dd� de �Z-G d d � d e �Z.dd� Z/d d� Z0G dd� de �Z1G dd� de �Z2G dd� de �Z3G dd� de4�Z5e�s`G dd� de �Z6G dd� de �Z7G dd� de �Z8G dd� de �Z9G dd � d e �Z:e;d!k�r�e� dS )"� )�division�absolute_import�print_functionN)�_gen_alignment_data) �TestCase�run_module_suite�assert_�assert_equal� assert_raises�assert_almost_equal�assert_allclose�assert_array_equal�IS_PYPY�suppress_warningsc @ s2 e Zd Zddd�Zddd�Zd dd�Zdd � Zd S )� TestTypes� c C s0 x*t D ]"}|d�}t|dkd||f � qW d S )Nr zerror with %r: got %r)�typesr )�self�level�atype�a� r ��/builddir/build/BUILDROOT/alt-python37-numpy-1.13.3-8.el8.x86_64/opt/alt/python37/lib64/python3.7/site-packages/numpy/core/tests/test_scalarmath.py� test_types s zTestTypes.test_typesc C s� x�t t�D ]�\}}|d�}tjdg|d�}xht t�D ]\\}}|d�}tjdg|d�} || } || }t| j|jd|t�|�j|t�|�jf � q4W q W d S )N� )�dtyper z$error with types (%d/'%c' + %d/'%c'))� enumerater �np�arrayr r �char)r r �kr Za_scalarZa_array�lZbtypeZb_scalarZb_arrayZc_scalarZc_arrayr r r � test_type_add s zTestTypes.test_type_addc C sD x>t t�D ]2\}}t�dddg|�}|dddg�}t||� q W d S )Nr � r )r r r r r )r r r r r �br r r �test_type_create4 s zTestTypes.test_type_createc C s"