관리-도구
편집 파일: test_arraysetops.cpython-311.pyc
� �܋fH� � � � d Z ddlZddlmZmZmZmZ ddlm Z m Z mZmZm Z mZmZmZ ddlZ G d� d� � Z G d� d� � ZdS ) z-Test functions for 1D array set operations. � N)�assert_array_equal�assert_equal� assert_raises�assert_raises_regex)�ediff1d�intersect1d�setxor1d�union1d� setdiff1d�unique�in1d�isinc � � e Zd Zd� Zd� Zd� Zd� Zd� Zej � d ej g d�ej �� � d ej d f ej g d�ej �� � ej g d�ej �� � d df ej g d �ej �� � ej ej dfg� � d� � � Zej � d ej g d�ej �� � dd ej g d�ej �� � f ej g d�ej �� � ej dgej �� � d ej g d�ej �� � f ej g d�ej �� � dd ej g d�ej �� � f ej g d�ej �� � dd ej g d�ej �� � fg� � d� � � Zej � dg d�� � d� � � Zej � dg d�� � d� � � Zd� Zej � dg d�� � d � � � Zej � dg d�� � d!� � � Zd"� Zej � dg d�� � d#� � � Zej � dd d$g� � d%� � � Zd&� Zej � d'ej ej fej ej fej ej fej ej fej ej fej ej fg� � ej � dg d�� � d(� � � � � Z!ej � dg d�� � d)� � � Z"d*� Z#d+� Z$d,� Z%d-� Z&d.� Z'd/� Z(d0� Z)d1� Z*d2� Z+d3� Z,d4� Z-d S )5� TestSetOpsc �� � t j g d�� � }t j g d�� � }t j g d�� � }t ||d�� � }t ||� � t j g d�� � }t j g d�� � }t j g d�� � }t ||� � }t ||� � t g t g g � � � � d S )N�� � � � �r � � r r )r r r T�� assume_unique)r r r r r )r r r r r r r )�np�arrayr r )�self�a�b�ec�c�eds �s/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/lib/tests/test_arraysetops.py�test_intersect1dzTestSetOps.test_intersect1d s� � ��H�\�\�\�"�"���H�_�_�_�%�%�� �X�i�i�i� � ����1�D�1�1�1���1�b�!�!�!� �H�_�_�_�%�%���H�*�*�*�+�+�� �X�i�i�i� � ����1�����1�b�!�!�!��2�{�2�r�2�2�3�3�3�3�3� c � � G d� d� � } |� � }t ||� � }t ||� � t g d�g d�� � }t |g d�� � d S )Nc � � e Zd Zd� ZdS )�4TestSetOps.test_intersect1d_array_like.<locals>.Testc �* � t j d� � S )Nr )r �arange�r s r$ � __array__z>TestSetOps.test_intersect1d_array_like.<locals>.Test.__array__% s � ��y��|�|�#r&