Ë
    ÉÓÐeî  ã                   ór   — d dl 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y)é    )ÚBaseMatcher)ÚDescription)Ú	hasmethod)ÚMatcherzRomilly CockingzCopyright 2011 hamcrest.orgzBSD, see License.txtc                   ó4   — e Zd Zdd„Zdedefd„Zdeddfd„Zy)	ÚStringContainsInOrderÚreturnNc                 ó„   — |D ]4  }t        |t        «      rŒt        | j                  j                  dz   «      ‚ || _        y )Nz requires string arguments)Ú
isinstanceÚstrÚ	TypeErrorÚ	__class__Ú__name__Ú
substrings)Úselfr   Ú	substrings      úM/usr/lib/python3/dist-packages/hamcrest/library/text/stringcontainsinorder.pyÚ__init__zStringContainsInOrder.__init__   sA   € Ø#ò 	XˆIÜ˜i¬Õ-Ü §¡× 7Ñ 7Ð:VÑ VÓWÐWð	Xð %ˆ�ó    Úitemc                 óv   — t        |d«      syd}| j                  D ]  }|j                  ||«      }|dk(  sŒ y y)NÚfindFr   éÿÿÿÿT)r   r   r   )r   r   Ú
from_indexr   s       r   Ú_matcheszStringContainsInOrder._matches   sG   € Ü˜˜vÔ&ØØˆ
ØŸ™ò 	ˆIØŸ™ 9¨jÓ9ˆJØ˜RÓÙð	ð r   Údescriptionc                 ó@   — |j                  ddd| j                  «       y )Nza string containing z, z	 in order)Úappend_listr   )r   r   s     r   Údescribe_toz!StringContainsInOrder.describe_to   s   € Ø×ÑÐ 6¸¸kÈ4Ï?É?Õ[r   )r	   N)	r   Ú
__module__Ú__qualname__r   r   Úboolr   r   r   © r   r   r   r      s0   „ ó%ð˜Sð  Tó ð\ {ð \°tô \r   r   r   r	   c                  ó   — t        | Ž S )a  Matches if object is a string containing a given list of substrings in
    relative order.

    :param string1,...:  A comma-separated list of strings.

    This matcher first checks whether the evaluated object is a string. If so,
    it checks whether it contains a given list of strings, in relative order to
    each other. The searches are performed starting from the beginning of the
    evaluated string.

    Example::

        string_contains_in_order("bc", "fg", "jkl")

    will match "abcdefghijklm".

    )r   )r   s    r   Ústring_contains_in_orderr%       s   € ô$ ! *Ð-Ð-r   N)Úhamcrest.core.base_matcherr   Úhamcrest.core.descriptionr   Úhamcrest.core.helpers.hasmethodr   Úhamcrest.core.matcherr   Ú
__author__Ú__copyright__Ú__license__r   r   r%   r#   r   r   ú<module>r-      sJ   ðÝ 2Ý 1Ý 5Ý )à€
Ø-€Ø$€ô\˜K¨Ñ,ô \ð*.¨#ð .°'¸#±,ô .r   