+
    Bi8                     @    ^ RI Ht ^ RIHtHtHtHt  ! R R]4      tR# )    )TestCase)	str_widthwlenprev_next_window
gen_colorsc                   8   a  ] tR t^t o R tR tR tR tRtV t	R# )	TestUtilsc                    . ROpV F  pV P                  \        V4      ^4       K   	  \        R4      \        R4      .pV F  pV P                  \        V4      ^4       K   	  R# )ai i N)r   1_!u   ☺u   ﾹ)assertEqualr   chr)self
characterscs   &  2/usr/lib/python3.14/test/test_pyrepl/test_utils.pytest_str_widthTestUtils.test_str_width   sW    E
AYq\1-  %j#e*-
AYq\1-     c                   R F  pV P                  \        V4      ^4       K   	  V P                  \        R4      ^4       \        R4      pV P                  \        V4      ^4       \        R4      pV P                  \        V4      ^4       V P                  \        R4      ^4       V P                  \        R4      ^4       R# )r   r   i  i   helloN)r   br   r   r   zhello)r   r   r   )r   r   char_east_asian_width_Nchar_east_asian_width_Ws   &   r   	test_wlenTestUtils.test_wlen   s    *AT!Wa( +fq)"%d)56:"%d)56:g*./3r   c                  a R  o\        S! 4       4      pV P                  \        V4      R4       V P                  \        V4      R4       V P                  \        V4      R4       V P                  \        V4      R4       V P                  \        4      ;_uu_ 4        \        V4       RRR4       R p\        V! 4       4      pV P                  \        V4      R4       V P                  \        4      ;_uu_ 4        \        V4       RRR4       V3R lp\        V! 4       4      pV P                  \        V4      R4       V P                  \        V4      R4       V P                  \        V4      R4       V P                  \        V4      R4       V P                  \
        4      ;_uu_ 4        \        V4       RRR4       R#   + '       g   i     EL%; i  + '       g   i     L; i  + '       g   i     R# ; i)	c               3   .   "   ^x  ^x  ^x  ^x  R# 5i   N r$   r   r   
gen_normal3TestUtils.test_prev_next_window.<locals>.gen_normal   s     GGGGs   Nc               3      "   ^x  R# 5ir"   r$   r$   r   r   	gen_short2TestUtils.test_prev_next_window.<locals>.gen_short,   s
     Gs   	c               3   D   <"   S ! 4        R j  xL
  ^^ ,           R #  L5i)Nr$   )r%   s   r   	gen_raise2TestUtils.test_prev_next_window.<locals>.gen_raise4   s     !|##aCC $s     )Nr#      )r#   r-      )r-   r.      )r.   r/   N)Nr#   N)r   r   nextassertRaisesStopIterationZeroDivisionError)r   pnwr(   r+   r%   s   &   @r   test_prev_next_windowTestUtils.test_prev_next_window   sl   	 z|,cL1cI.cI.cL1}--I .	 y{+cO4}--I .	 y{+cL1cI.cI.cL1011I 21) .-- .- 211s$   G=G0G-G	G*	-G>	c                   R R	.3RR	.3RR	.3RR	.3RR
.3RR.3RR.3.pV F  w  r#V P                  VR7      ;_uu_ 4        \        \        V4      4      p. pV FR  pW&P                  P                  VP                  P
                  ^,            pVP                  WvP                  34       KT  	  V P                  WS4       RRR4       K  	  R#   + '       g   i     K  ; i)za.setzobj.listz	obj.matchzb. \
 formatsetlistz
    
 dict)codeN).op)r8   builtin)r9   r=   )dictr=   )	subTestr9   r   spanstartendappendtagr   )r   casesr:   expected_highlightscolorsactual_highlightscolor	span_texts   &       r   $test_gen_colors_keyword_highlighting.TestUtils.test_gen_colors_keyword_highlighting@   s     {m$+';-(}-'())*+012

 */%D4((j./$&!#E $ZZ%5%5ejjnnq6H II%,,i-CD $   !2H )( */(((s    B CCr$   N)
__name__
__module____qualname____firstlineno__r   r   r5   rK   __static_attributes____classdictcell__)__classdict__s   @r   r	   r	      s!     .4!FI Ir   r	   N)unittestr   _pyrepl.utilsr   r   r   r   r	   r$   r   r   <module>rV      s     G GNI NIr   