관리-도구
편집 파일: test_Part.cpython-37.opt-1.pyc
B �]� � @ sb d dl mZ dZG dd� dej�ZG dd� dej�ZG dd� dej�Zd d d �Zedkr^e� dS )� )�support� c @ s$ e Zd Zdd� Zdd� Zdd� ZdS )�IdentityCasec C s� dd l }dd l}dd l}ttd��}|�|� dd� |D �}| j|� j}|�d�}| � t |�d t |j� d dj||d t|� |gd ��d �� d S ) Nr �d c S s g | ]}t |��qS � )�float)�.0�ir r �M/opt/alt/python37/lib64/python3.7/site-packages/guppy/heapy/test/test_Part.py� <listcomp> s z'IdentityCase.test_1.<locals>.<listcomp>g � aJ Set of 100 <float> objects. Total size = {sztotal} bytes. Index Size % Cumulative % Value 0 {sz:>3} 1.0 {szacc[0]:>4} 1.0 0.0 1 {sz:>3} 1.0 {szacc[1]:>4} 2.0 1.0 2 {sz:>3} 1.0 {szacc[2]:>4} 3.0 2.0 3 {sz:>3} 1.0 {szacc[3]:>4} 4.0 3.0 4 {sz:>3} 1.0 {szacc[4]:>4} 5.0 4.0 5 {sz:>3} 1.0 {szacc[5]:>4} 6.0 5.0 6 {sz:>3} 1.0 {szacc[6]:>4} 7.0 6.0 7 {sz:>3} 1.0 {szacc[7]:>4} 8.0 7.0 8 {sz:>3} 1.0 {szacc[8]:>4} 9.0 8.0 9 {sz:>3} 1.0 {szacc[9]:>4} 10.0 9.0 <90 more rows. Type e.g. '_.more' to view.> Index Size % Cumulative % Value 10 {sz:>3} 1.0 {szacc[10]:>4} 11.0 10.0 11 {sz:>3} 1.0 {szacc[11]:>4} 12.0 11.0 12 {sz:>3} 1.0 {szacc[12]:>4} 13.0 12.0 13 {sz:>3} 1.0 {szacc[13]:>4} 14.0 13.0 14 {sz:>3} 1.0 {szacc[14]:>4} 15.0 14.0 15 {sz:>3} 1.0 {szacc[15]:>4} 16.0 15.0 16 {sz:>3} 1.0 {szacc[16]:>4} 17.0 16.0 17 {sz:>3} 1.0 {szacc[17]:>4} 18.0 17.0 18 {sz:>3} 1.0 {szacc[18]:>4} 19.0 18.0 19 {sz:>3} 1.0 {szacc[19]:>4} 20.0 19.0 <80 more rows. Type e.g. '_.more' to view.> � )�szZsztotalZszacc)� itertools�random�sys�list�rangeZshuffle�iso�byid� getsizeof�aseq�strZmore�format� accumulate)�selfr r r Zvs�xr r r r �test_1 s zIdentityCase.test_1c s� g }x,t d�D ] }xdD ]}|�|| � qW qW �j|� j}dd� � � �fdd�}x,t ddd �D ]}||d � }|||j� qbW ��|jd j|jd jj� d S )Nr �abcc sT t | ��d�}|d �d�� |dd � }|d �d�r>|�� � fdd�|D �}|S ) Nr r ZRepresentation� ����<c s g | ]}|� d � �qS )Nr )r �line)�dataposr r r <