+
     Bi                         R t ^ RIHt ^ RIt^ RIHt ^ RIHtHt  ! R R4      t	 ! R R]P                  4      t]R	8X  d   ]P                  ! ^R
7       R# R# )zTest autoexpand, coverage 100%.)
AutoExpandN)requires)TextTkc                   &   a  ] tR t^	t o R tRtV tR# )DummyEditwinc                    Wn         R # Ntext)selfr   s   &&8/usr/lib/python3.14/idlelib/idle_test/test_autoexpand.py__init__DummyEditwin.__init__   s    	    r
   N)__name__
__module____qualname____firstlineno__r   __static_attributes____classdictcell____classdict__s   @r   r   r   	   s      r   r   c                   d   a  ] tR t^t o ]R 4       t]R 4       tR tR tR t	R t
R tR tR	tV tR
# )AutoExpandTestc                    \        R 4       \        4       V n        \        V P                  4      V n        \        \        V P                  4      4      V n        R V P                  n        R# )guic                      R # r	    r   r   r   <lambda>+AutoExpandTest.setUpClass.<locals>.<lambda>   s    tr   N)	r   r   tkr   r   r   r   auto_expandbellclss   &r   
setUpClassAutoExpandTest.setUpClass   sB    <$\#((%;<+r   c                n    V = V =\        V R 4      '       d   V P                  P	                  4        V =R# R# )r!   N)r   r"   hasattrr!   destroyr$   s   &r   tearDownClassAutoExpandTest.tearDownClass'   s0    Hco3FFNN r   c                >    V P                   P                  R R4       R# )1.0endN)r   delete)r   s   &r   tearDownAutoExpandTest.tearDown.   s    		&r   c                >   V P                   pV P                  P                  pV P                  pV! V! 4       R 4       VP	                  RR4       V! V! 4       R4       VP	                  RR4       V! V! 4       R4       VP	                  RR4       V! V! 4       R 4       VP	                  RR4       V! V! 4       R4       VP	                  RR4       V! V! 4       R4       VP                  R	R4       V! V! 4       R 4       VP                  R
R4       V! V! 4       R 4       R# ) insertthisthis isz
sample
stringstringz3.0r.   r/   N)r   r"   getprevwordassertEqualr5   r0   )r   r   previousequals   &   r   test_get_prevword AutoExpandTest.test_get_prevword1   s    yy##//  hj"Hc"hj#He$hj&!Hc"hj"Hd#hj$H01hj(#E8$hj"E5!hj"r   c                   V P                   P                  pV P                   P                  pV P                  pV P                  P                  R R4       V! V P                   P                  4       . RO4       V! R4       V! V! 4       R4       V! R4       V! V! 4       R4       V! R4       V! V! 4       R4       V! R4       V! V! 4       R4       R# )	r5   zab ac bx ad ab aabadacaeventN)rC   rD   rE   rF   )r"   r<   expand_word_eventr=   r   r5   getwords)r   r>   expandr?   s   &   r   test_before_onlyAutoExpandTest.test_before_onlyM   s    ##//!!33  		#56d'')+BCwhj$whj$whj$whj#r   c                   V P                   pV P                  P                  pV P                  P                  pV P                  pVP                  R R4       VP                  R R4       V! V P                  P                  4       . R	O4       V! R4       V! V! 4       R4       V! R4       V! V! 4       R4       V! R4       V! V! 4       R4       V! R4       V! V! 4       R4       R# )
r5   z a, [ab] ac: () bx"" cd ac= ad yaz1.1rC   rE   rD   rF   rG   N)rC   rE   rD   rF   r   r"   r<   rH   r=   r5   mark_setrI   r   r   r>   rJ   r?   s   &    r   test_after_onlyAutoExpandTest.test_after_only]   s    yy##//!!33  H@Ah&d'')+BCwhj$whj$whj$whj#r   c                   V P                   pV P                  P                  pV P                  P                  pV P                  pVP                  R R4       VP                  R R4       VP                  R R4       V! V P                  P                  4       . R	O4       V! R4       V! V! 4       R4       V! R4       V! V! 4       R4       V! R4       V! V! 4       R4       R# )
r5   z	ab xy yz
z
a ac by acz2.1rC   rE   rF   rG   N)rC   rE   rF   rN   rP   s   &    r   test_both_before_after%AutoExpandTest.test_both_before_afterp   s    yy##//!!33  Hl+Hl+h&d'')+<=whj$whj$whj#r   c                .   V P                   pV P                  P                  pV P                  pV! V P                  P	                  4       . 4       V! V! R 4      R4       VP                  RR4       V! V P                  P	                  4       . 4       VP                  RR4       VP                  RR4       V! R 4       V P                  P                  pVP                  RR4       V! R 4       V P                  P                  pV P                  WE4       R# )rG   breakr5   z
bx cy dz azac xy a ac ad az1.7z1.endN)	r   r"   rH   r=   rI   r5   rO   stateassertNotEqual)r   r   rJ   r?   initial_state	new_states   &     r   test_other_expand_cases&AutoExpandTest.test_other_expand_cases   s    yy!!33   	d'')2.fWow'Hl+d'')2. 	H/0h&w((..h(w$$**	M5r   r   N)r   r   r   r   classmethodr&   r+   r1   r@   rK   rQ   rT   r\   r   r   r   s   @r   r   r      sN     , ,,  '8 &$6 6r   r   __main__)	verbosity)__doc__idlelib.autoexpandr   unittesttest.supportr   tkinterr   r   r   TestCaser   r   mainr   r   r   <module>rh      sN    ! )  !  
I6X&& I6X zMMA r   