python (3.11.7)
    e                         d dl Z d dlZd dlZd dlZd dlmZ d dlmZ d dlmZ  G d de j                  Z	 G d de j                  Z
 G d	 d
e j                  Zedk    r e j
                     dS dS )    N)array)	os_helper)
script_helperc                   ,    e Zd Zd Zd Zd Zd Zd ZdS )LegacyBase64TestCasec                 p   |                      t          |d           |                      t          |g            t          d                              dd          }|                      t          ||           t          d                              d          }|                      t          ||           d S )N s   1234B)   r   I)assertRaises	TypeError
memoryviewcast)selffmultidimensionalint_datas       D/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/test/test_base64.pycheck_type_errorsz&LegacyBase64TestCase.check_type_errors
   s    )Q+++)Q+++%g..33C@@)Q(8999g&&++C00)Q11111    c                    | j         } |t          j        d          d            |t          j        d          d            |t          j        d          d            |t          j        d          d            |t          j        d	          d	            |t          j        d
          d            |t          j        t          d                    d            |t          j        t	          d                    d            |t          j        t          dd                    d           |                     t          j                   d S )
N   www.python.org   d3d3LnB5dGhvbi5vcmc=
   a   YQ==
   ab   YWI=
   abc   YWJj
r   R   abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#0^&*();:<>,. []{}r   YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXpBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWjAxMjM0
NTY3ODkhQCMwXiYqKCk7Ojw+LC4gW117fQ==
r
   )assertEqualbase64encodebytes	bytearrayr   r   r   r   eqs     r   test_encodebytesz%LegacyBase64TestCase.test_encodebytes   s]   
6/002KLLL
6d##Y///
6e$$i000
6f%%y111
6c""C(((
6 A B B3	4 	4 	4 	6i//00)<<<
6j00119===
6eC00119===v122222r   c                    | j         } |t          j        d          d            |t          j        d          d            |t          j        d          d            |t          j        d          d            |t          j        d	          d
            |t          j        d          d            |t          j        t          d                    d            |t          j        t	          d                    d            |t          j        t          dd                    d           |                     t          j                   d S )
Nr   r   r   r   r   r   r    r   r"