
    ֤i	                         d dl Z d dlmZmZmZmZmZ d Zd Zd Z	e j                  j                  dddgfdd	gfd
ddgfg      d        Zd Zd Zy)    N)colordiff_stringsformat_reprlocale_escapewrapc                      t        dd      dk(  sJ t        dd      dk(  sJ t        dd      d	k(  sJ t        dd
d      dk(  sJ t        ddd
d      dk(  sJ y )Ntestgreen)fgz[38;5;2mtest[0m   z[38;5;4mtest[0mT)boldz[1mtest[0mred)r   	underlinez[4;38;5;1mtest[0m   )r   bgr   z[1;38;5;7;48;5;1mtest[0m)r        g/var/www/vps2.regionflexible.com/Desarrollo/venv/lib/python3.12/site-packages/wasabi/tests/test_util.py
test_colorr      sx    G$(AAAAA";;;;d#';;;;ET26QQQQfu404VVVr   c                      d} t        | d      | k(  sJ t        | d      dk(  sJ t        | dd      dk(  sJ t        | d	d
      dk(  sJ y )NzHello world, this is a test.r   )indentr   z     Hello world, this is a test.
   )wrap_maxr   zHello
world,
this is a
test.      z(  Hello
  world,
  this
  is
  a
  test.)r   )texts    r   	test_wrapr      sh    )DQ4'''Q#EEEEr!,0QQQQTAa(:	;	;r   c                      ddd} t        |       }|j                  dd      dv sJ t        | d      }|j                  dd      d	v sJ t        | dd
      }|j                  dd      dv sJ y )Nworld{   )hellor	   zu'')z{'hello': 'world', 'test': 123}z{'test': 123, 'hello': 'world'}r   )max_len)z{'hel ...  123}z{'tes ... rld'}z{'te ... rld'}z[...])r#   ellipsis)z{'hel [...]  123}z{'tes [...] rld'}z{'te [...] rld'})r   replace)obj	formatteds     r   test_format_reprr(      s    S
)CC IT3' ,    C,IT3' ,   
 Cg>IT3' ,   r   ztext,non_asciiabcu   ✔ abcz? abcu   👻z???c                 F    t        |       }|| k(  s||v sJ t        |       y )N)r   print)r   	non_asciiresults      r   test_locale_escaper/   0   s)     4 FT>Vy000	&Mr   c                  2    d} d}d}t        | |      |k(  sJ y )Nhello
world
wide
webyo
wide
world
webzp[38;5;16;48;5;2myo[0m
[38;5;16;48;5;2mwide[0m
[38;5;16;48;5;1mhello[0m
world
[38;5;16;48;5;1mwide[0m
webr   abexpecteds      r   test_diff_stringsr8   >   s)    !AA _H1)))r   c                  6    d} d}d}t        | |d      |k(  sJ y )Nr1   r2   zx[38;5;16;48;5;2m+ yo[0m
[38;5;16;48;5;2m+ wide[0m
[38;5;16;48;5;1m- hello[0m
world
[38;5;16;48;5;1m- wide[0m
webT)add_symbolsr3   r4   s      r   test_diff_strings_with_symbolsr;   E   s+    !AA gH1$/8;;;r   )pytestwasabi.utilr   r   r   r   r   r   r   r(   markparametrizer/   r8   r;   r   r   r   <module>r@      sr     M M* 		y!	$*<r   