
    e                         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
ee         Zdede	e   fdZdede	e   fdZdede	e   fdZdede	e   fdZy)    N)AnyCallable)BaseMatcher)Description)MatcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtc                   R    e Zd Zdedeeegef   deddfdZdedefdZd	e	ddfd
Z
y)OrderingComparisonvaluecomparison_functioncomparison_descriptionreturnNc                 .    || _         || _        || _        y )N)r
   r   r   )selfr
   r   r   s       M/usr/lib/python3/dist-packages/hamcrest/library/number/ordering_comparison.py__init__zOrderingComparison.__init__   s     
#6 &<#    itemc                 Z    	 | j                  || j                        S # t        $ r Y yw xY w)NF)r   r
   	TypeError)r   r   s     r   _matcheszOrderingComparison._matches   s0    	++D$**== 		s    	**descriptionc                     |j                  d      j                  | j                        j                  d      j                  | j                         y )Nza value  )append_textr   append_description_ofr
   )r   r   s     r   describe_tozOrderingComparison.describe_to   s>    
+778S8ST``	





+r   )__name__
__module____qualname__r   r   boolstrr   r   r   r    r   r   r	   r	      sa    == &sCj$&67= !$	=
 
=S T ,{ ,t ,r   r	   r
   r   c                 8    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
   s    r   greater_thanr'   $   s     eX[[.AAr   c                 8    t        | t        j                  d      S )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&   s    r   greater_than_or_equal_tor*   -   s     eX[[2LMMr   c                 8    t        | t        j                  d      S )zdMatches if object is less than a given value.

    :param value: The value to compare against.

    z	less than)r	   r$   ltr&   s    r   	less_thanr-   6   s     eX[[+>>r   c                 8    t        | t        j                  d      S )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&   s    r   less_than_or_equal_tor0   ?   s     eX[[2IJJr   )r$   typingr   r   hamcrest.core.base_matcherr   hamcrest.core.descriptionr   hamcrest.core.matcherr   
__author____copyright____license__r	   r'   r*   r-   r0   r"   r   r   <module>r8      s       2 1 )
-$,S) ,.B B BNC NGCL N?S ?WS\ ?K K Kr   