o
    (]^“  ã                   @   s¸   d dl Z d dlmZmZ d dlmZ d dlmZ d dlm	Z	 dZ
dZdZG d	d
„ d
ee ƒZdede	e fdd„Zdede	e fdd„Zdede	e fdd„Zdede	e fdd„ZdS )é    N)ÚAnyÚCallable)ÚBaseMatcher)ÚDescription)ÚMatcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtc                   @   sV   e Zd Zdedeeegef deddfdd„Zdedefd	d
„Zde	ddfdd„Z
dS )ÚOrderingComparisonÚvalueÚcomparison_functionÚcomparison_descriptionÚreturnNc                 C   s   || _ || _|| _d S ©N)r   r	   r
   )Úselfr   r	   r
   © r   úM/usr/lib/python3/dist-packages/hamcrest/library/number/ordering_comparison.pyÚ__init__   s   
zOrderingComparison.__init__Úitemc                 C   s   |   || j¡S r   )r	   r   )r   r   r   r   r   Ú_matches   s   zOrderingComparison._matchesÚdescriptionc                 C   s$   |  d¡  | j¡  d¡ | j¡ d S )Nza value ú )Úappend_textr
   Úappend_description_ofr   )r   r   r   r   r   Údescribe_to   s   ÿzOrderingComparison.describe_to)Ú__name__Ú
__module__Ú__qualname__r   r   ÚboolÚstrr   r   r   r   r   r   r   r   r      s    þýü
û
r   r   r   c                 C   ó   t | tjdƒS )zgMatches if object is greater than a given value.

    :param value: The value to compare against.

    zgreater than)r   ÚoperatorÚgt©r   r   r   r   Úgreater_than!   ó   r!   c                 C   r   )zsMatches if object is greater than or equal to a given value.

    :param value: The value to compare against.

    zgreater than or equal to)r   r   Úger    r   r   r   Úgreater_than_or_equal_to*   r"   r$   c                 C   r   )zdMatches if object is less than a given value.

    :param value: The value to compare against.

    z	less than)r   r   Últr    r   r   r   Ú	less_than3   r"   r&   c                 C   r   )zpMatches if object is less than or equal to a given value.

    :param value: The value to compare against.

    zless than or equal to)r   r   Úler    r   r   r   Úless_than_or_equal_to<   r"   r(   )r   Útypingr   r   Úhamcrest.core.base_matcherr   Úhamcrest.core.descriptionr   Úhamcrest.core.matcherr   Ú
__author__Ú__copyright__Ú__license__r   r!   r$   r&   r(   r   r   r   r   Ú<module>   s    			