Ë
    ü[;jW
  ã                   ó|   — d Z ddlmZ ddlmZ dZ G d„ dej
                  «      Zedk(  r ej                  «        yy)	zTests for formatting.py.é    )Ú
formatting)Ú	testutilséP   c                   óH   — e Zd Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Z	d„ Z
d	„ Zd
„ Zy)ÚFormattingTestc                 óV   — t        j                  d«      }| j                  |ddg«       y )NÚhelloz[1mhello[0m)r   ÚBoldÚassertIn©ÚselfÚtexts     ú]G:\00. PROJECTS\API\Inventory\templateJSON\kerjaOCR\Lib\site-packages\fire/formatting_test.pyÚ	test_boldzFormattingTest.test_bold   s$   € Ü�?‰?˜7Ó#€DØ‡M�M�$˜Ð"7Ð8Õ9ó    c                 óV   — t        j                  d«      }| j                  |ddg«       y )Nr	   z[4mhello[0m)r   Ú	Underliner   r   s     r   Útest_underlinezFormattingTest.test_underline   s&   € Ü×Ñ Ó(€DØ‡M�M�$˜Ð"7Ð8Õ9r   c                 óV   — t        j                  dd¬«      }| j                  d|«       y )Nr	   é   ©Úspacesz  hello©r   ÚIndentÚassertEqualr   s     r   Útest_indentzFormattingTest.test_indent!   s$   € Ü×Ñ˜W¨QÔ/€DØ×Ñ�Y Õ%r   c                 óV   — t        j                  dd¬«      }| j                  d|«       y )Nzhello
worldr   r   z  hello
  worldr   r   s     r   Útest_indent_multiple_linesz)FormattingTest.test_indent_multiple_lines%   s%   € Ü×Ñ˜^°AÔ6€DØ×ÑÐ'¨Õ.r   c                 óV   — t        j                  dg«      }| j                  dg|«       y )NÚrice©r   ÚWrappedJoinr   ©r   Úliness     r   Útest_wrap_one_itemz!FormattingTest.test_wrap_one_item)   s&   € Ü×"Ñ" F 8Ó,€EØ×Ñ�f�X˜uÕ%r   c                 ó^   — t        j                  g d¢d¬«      }| j                  g d¢|«       y )N)r    ÚbeansÚchickenÚcheeseé   )Úwidth)zrice | beans |z	chicken |r)   r!   r#   s     r   Útest_wrap_multiple_itemsz'FormattingTest.test_wrap_multiple_items-   s.   € Ü×"Ñ"Ò#IØ)+ô-€Eà×Ñò  à!&õ(r   c                 ód   — d}t        j                  |dt        ¬«      }| j                  d|«       y )NúThis is a stringé
   ©r   Úavailable_spaceÚline_lengthz
This is...©r   ÚEllipsisTruncateÚLINE_LENGTHr   ©r   r   Útruncated_texts      r   Útest_ellipsis_truncatez%FormattingTest.test_ellipsis_truncate4   s/   € Ø€DÜ×0Ñ0Ø 2´;ô@€Nà×Ñ�\ >Õ2r   c                 ód   — d}t        j                  |dt        ¬«      }| j                  d|«       y )Nr.   r   r0   r3   r6   s      r   Ú'test_ellipsis_truncate_not_enough_spacez6FormattingTest.test_ellipsis_truncate_not_enough_space:   s/   € Ø€DÜ×0Ñ0Ø 1´+ô?€Nà×ÑÐ'¨Õ8r   c                 ód   — d}t        j                  |dt        ¬«      }| j                  d|«       y )NÚ1000000000Lé   r0   z10...0L©r   ÚEllipsisMiddleTruncater5   r   r6   s      r   Útest_ellipsis_middle_truncatez,FormattingTest.test_ellipsis_middle_truncate@   s.   € Ø€DÜ×6Ñ6Ø 1´+ô?€Nà×Ñ�Y Õ/r   c                 ód   — d}t        j                  |dt        ¬«      }| j                  d|«       y )Nr<   r   r0   r>   r6   s      r   Ú.test_ellipsis_middle_truncate_not_enough_spacez=FormattingTest.test_ellipsis_middle_truncate_not_enough_spaceF   s.   € Ø€DÜ×6Ñ6Ø 1´+ô?€Nà×Ñ�] NÕ3r   N)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r%   r,   r8   r:   r@   rB   © r   r   r   r      s4   „ ò:ò:ò&ò/ò&ò(ò3ò9ò0ó4r   r   Ú__main__N)	Ú__doc__Úfirer   r   r5   ÚBaseTestCaser   rC   ÚmainrF   r   r   Ú<module>rL      sC   ðñ å Ý à€ô34�Y×+Ñ+ô 34ðl ˆzÒØ€)‡.�.Õð r   