관리-도구
편집 파일: test_random.cpython-311.pyc
� �܋fQ � � � d dl Z d dlZd dlZd dlmZmZmZmZm Z m Z mZmZm Z d dlmZ d dlZ G d� d� � Z G d� d� � Z G d� d � � Z G d � d� � Z G d� d � � Z G d� d� � Z G d� d� � Zej � e d�� � G d� d� � � � Z G d� d� � ZdS )� N) �assert_� assert_raises�assert_equal�assert_warns�assert_no_warnings�assert_array_equal�assert_array_almost_equal�suppress_warnings�IS_WASM)�randomc �, � e Zd Zd� Zd� Zd� Zd� Zd� ZdS )�TestSeedc � � t j � d� � }t |� d� � d� � t j � d� � }t |� d� � d� � d S )Nr �� i� � �� i� )�npr �RandomStater �randint��self�ss �q/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/random/tests/test_random.py�test_scalarzTestSeed.test_scalar sf � ��I�!�!�!�$�$���Q�Y�Y�t�_�_�c�*�*�*��I�!�!�*�-�-���Q�Y�Y�t�_�_�c�*�*�*�*�*� c �X � t j � t d� � � � }t |� d� � d� � t j � t j d� � � � }t |� d� � d� � t j � dg� � }t |� d� � d� � t j � dg� � }t |� d� � d� � d S )N� r i� r i� r i )r r r �ranger r �aranger s r � test_arrayzTestSeed.test_array s� � ��I�!�!�%��)�)�,�,���Q�Y�Y�t�_�_�c�*�*�*��I�!�!�"�)�B�-�-�0�0���Q�Y�Y�t�_�_�c�*�*�*��I�!�!�1�#�&�&���Q�Y�Y�t�_�_�c�*�*�*��I�!�!�:�,�/�/���Q�Y�Y�t�_�_�c�*�*�*�*�*r c � � t t t j j d� � t t t j j d� � d S )N� �����r � TypeErrorr r r � ValueError�r s r �test_invalid_scalarzTestSeed.test_invalid_scalar s6 � ��i���!6��=�=�=��j�"�)�"7��<�<�<�<�<r c � � t t t j j dg� � t t t j j dg� � t t t j j dg� � t t t j j g d�� � t t t j j g d�� � d S )Nr! r"