+
     Bi                         ^ 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# )    )
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/   r0   N)r   r#   getprevwordassertEqualr6   r1   )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# )	r6   zab ac bx ad ab aabadacaeventN)rD   rE   rF   rG   )r#   r=   expand_word_eventr>   r   r6   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# )
r6   z a, [ab] ac: () bx"" cd ac= ad yaz1.1rD   rF   rE   rG   rH   N)rD   rF   rE   rG   r   r#   r=   rI   r>   r6   mark_setrJ   r   r   r?   rK   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# )
r6   z	ab xy yz
z
a ac by acz2.1rD   rF   rG   rH   N)rD   rF   rG   rO   rQ   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# )rH   breakr6   z
bx cy dz azac xy a ac ad az1.7z1.endN)	r   r#   rI   r>   rJ   r6   rP   stateassertNotEqual)r   r   rK   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,   r2   rA   rL   rR   rU   r]   r   r   r   s   @r   r   r      sN     , ,,  '8 &$6 6r   r   __main__)	verbosity)idlelib.autoexpandr   unittesttest.supportr   tkinterr   r   r   TestCaser   r   mainr   r   r   <module>rh      sM    *  !  
I6X&& I6X zMMA r   