Sindbad~EG File Manager
�
)Μg� � � � d dl Z d dlmZ d dlmZ d dlmZmZ d dlm Z G d� d� Z
G d� d e
e� Z G d
� de
e� Zy)� N)�StringIO)�OrderedDict)�PyTest�CTest)�supportc �l � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z
d � Zd
� Zd� Z
d� Zd
� Zd� Zd� Zd� Zy)�
TestDecodec �� � | j dt j �� }| j |t j � | j |t j d� � y )Nz1.1)�parse_float)�loads�decimal�Decimal�assertIsInstance�assertEqual��self�rvals �7/usr/local/lib/python3.12/test/test_json/test_decode.py�test_decimalzTestDecode.test_decimal sE � ��z�z�%�W�_�_�z�=�����d�G�O�O�4�����w���u�5�6� c � � | j dt �� }| j |t � | j |d� y )N�1)� parse_intg �?)r �floatr r r s r �
test_floatzTestDecode.test_float s4 � ��z�z�#��z�/�����d�E�*�����s�#r c �F � | j | j d� d� y )N� 1� �r r �r s r �
test_byteszTestDecode.test_bytes s � �������D�)�1�-r c �z � dD ]6 \ }}| j | j |t j �� |� �8 y )N))�Infinity�INFINITY)z -Infinityz -INFINITY)�NaN�NAN)�parse_constant)r r �str�upper)r �constant�expecteds r �test_parse_constantzTestDecode.test_parse_constant s9 � �#
��H�h�
����
�
�8�C�I�I�
�>��
�#
r c � � dD ]7 }| j | j � 5 | j |� d d d � �9 y # 1 sw Y �DxY w)N)�nanr&