B
    .(b;                 @   s   d dl mZ d dlZd dlmZ dd Zejdddd	d
ddejddej	 dgdd Z
ejddddddddddddgdd Zejd d!d"d#d$gd%d& Zejd d'gd(d) ZdS )*    )unicode_literalsN)like_numc             C   s    d}| |}t |dkstd S )Na  Tributes pour in for late British Labour Party leader

Tributes poured in from around the world Thursday
to the late Labour Party leader John Smith, who died earlier from a massive
heart attack aged 55.

In Washington, the US State Department issued a statement regretting "the
untimely death" of the rapier-tongued Scottish barrister and parliamentarian.

"Mr. Smith, throughout his distinguishedL   )lenAssertionError)en_tokenizertexttokens r
   L/home/dcms/DCMS/lib/python3.7/site-packages/spacy/tests/lang/en/test_text.py#test_en_tokenizer_handles_long_text   s    
r   ztext,length)z"The U.S. Army likes Shock and Awe.   )z1U.N. regulations are not a part of their concern.
   )u   “Isn't it?”   )z2Yes! "I'd rather have a walk", Ms. Comble sighed.    )z"'Me too!', Mr. P. Delaware cried.    )zThey ran about 10km.r   z'But then the 6,000-year ice age came...r   )Zmarksc             C   s   | |}t ||kstd S )N)r   r   )r   r   lengthr	   r
   r
   r   test_en_tokenizer_handles_cnts   s    r   z
text,match)10T)1T)z10,000T)z10,00T)z999.0T)ZoneT)ZtwoT)ZbillionT)ZdogF),F)z1/2Tc             C   s.   | |}t |dkst|d j|ks*td S )N   r   )r   r   r   )r   r   matchr	   r
   r
   r   test_lex_attrs_like_number*   s    r   wordthirdZ	MillionthZ100thZ	Hundredthc             C   s   t | std S )N)r   r   )r   r
   r
   r   )test_en_lex_attrs_like_number_for_ordinal@   s    
r   Zelevenc             C   s    t | stt |  std S )N)r   r   upper)r   r
   r
   r   test_en_lex_attrs_capitalsM   s    r   )
__future__r   ZpytestZspacy.lang.en.lex_attrsr   r   markZparametrizeparamZxfailr   r   r   r   r
   r
   r
   r   <module>   sB   		