HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/hamcrest/library/number/__pycache__/ordering_comparison.cpython-310.pyc
o

(]^��@s�ddlZddlmZmZddlmZddlmZddlm	Z	dZ
dZdZGd	d
�d
ee�Z
dede	efd
d�Zdede	efdd�Zdede	efdd�Zdede	efdd�ZdS)�N)�Any�Callable)�BaseMatcher)�Description)�MatcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtc@sVeZdZdedeeegefdeddfdd�Zdedefd	d
�Zde	ddfdd
�Z
dS)�OrderingComparison�value�comparison_function�comparison_description�returnNcCs||_||_||_dS�N)rr	r
)�selfrr	r
�r�M/usr/lib/python3/dist-packages/hamcrest/library/number/ordering_comparison.py�__init__s
zOrderingComparison.__init__�itemcCs|�||j�Sr)r	r)r
rrrr�_matchesszOrderingComparison._matches�descriptioncCs$|�d��|j��d��|j�dS)Nza value � )�append_textr
�append_description_ofr)r
rrrr�describe_tos�zOrderingComparison.describe_to)�__name__�
__module__�__qualname__rr�bool�strrrrrrrrrr
s���
�
rrrcC�t|tjd�S)zgMatches if object is greater than a given value.

    :param value: The value to compare against.

    zgreater than)r�operator�gt�rrrr�greater_than!�r!cCr)zsMatches if object is greater than or equal to a given value.

    :param value: The value to compare against.

    zgreater than or equal to)rr�ger rrr�greater_than_or_equal_to*r"r$cCr)zdMatches if object is less than a given value.

    :param value: The value to compare against.

    z	less than)rr�ltr rrr�	less_than3r"r&cCr)zpMatches if object is less than or equal to a given value.

    :param value: The value to compare against.

    zless than or equal to)rr�ler rrr�less_than_or_equal_to<r"r()r�typingrr�hamcrest.core.base_matcherr�hamcrest.core.descriptionr�hamcrest.core.matcherr�
__author__�
__copyright__�__license__rr!r$r&r(rrrr�<module>s