B
    '(bC
                 @   sB   d dl mZmZ d dlmZmZ G dd deZedkr>e  dS )    )TestCasemain)trim_source_linesplit_wordsc               @   s(   e Zd ZddddZddddZdS )FancyErrorFormattingTestCasesN)returnc             C   s   t ddddddkstt dddddd	ks0tt ddd
ddd	ksHtt ddddddks`tt ddddddksxtt ddddddkstt ddddddkstt ddddddkstt ddddddkstd S )N0123456789abcdef         )max_lencolZ	min_width)r   r      r   )z
0123456...r      )z...1234567...   )z...2345678...   )z...456789a...      )z...789abcd...r      )z
...9abcdefr      )r   AssertionError)self r   F/home/dcms/DCMS/lib/python3.7/site-packages/mypy/test/testformatter.pytest_trim_source   s$    z.FancyErrorFormattingTestCases.test_trim_sourcec             C   s   t dddgkstt dddddd	gks.tt d
dddddgksHtt ddddgks^tt ddddgksttt ddgkstt ddgkstt dddgkstd S )NzSimple messageZSimplemessagez&Message with "Some[Long, Types]" in itMessagewithz"Some[Long, Types]"initz1Message with "Some[Long, Types]" and [error-code]andz[error-code]z "Type[Stands, First]" then wordsz"Type[Stands, First]"Zthenwordsz First words "Then[Stands, Type]"ZFirstz"Then[Stands, Type]"z"Type[Only, Here]"ZOneWord  )r   r   )r   r   r   r   test_split_words!   s    
z.FancyErrorFormattingTestCases.test_split_words)__name__
__module____qualname__r   r&   r   r   r   r   r      s   r   __main__N)Zunittestr   r   Z	mypy.utilr   r   r   r'   r   r   r   r   <module>   s   ,