+
    Bi                         ^ RI t ^ RIt^ RIt^ RIt^ RIHtHtHtHtH	t	 R t
 ! R R]P                  4      t ! R R]P                  4      t]R8X  d   ]P                  ! 4        R# R# )	    N)ComplexRealRationalIntegralNumberc                     R  p\        V 4       F/  p \        W4      pVP                  '       d   \        WV4       K/  K1  	  \
        P                  ! V 4       V #   \         d     KY  i ; i)c                      \        4       hN)NotImplementedError)argskwargss   *,1/usr/lib/python3.14/test/test_abstract_numbers.pynot_implemented#concretize.<locals>.not_implemented   s    !##    )dirgetattr__isabstractmethod__setattrAttributeErrorabcupdate_abstractmethods)clsr   namevalues   &   r   
concretizer   
   sj    $ C	C&E)))?3 *  s#J  		s   )AA)(A)c                   2   a  ] tR t^t o R tR tR tRtV tR# )TestNumbersc                   V P                  \        \        4       V P                  \        \        4       V P                  \        \        4       V P                  \        \
        4       V P                  \        \        4       V P                  ^\        ^4      P                  4       V P                  ^ \        ^4      P                  4       V P                  ^\        ^4      P                  4       4       V P                  R\        R4      P                  4       4       V P                  ^\        ^4      P                  4       V P                  ^\        ^4      P                  4       R# )   Ni)assertIsSubclassintr   r   r   r   r   assertEqualrealimag	conjugate	numeratordenominatorselfs   &r   test_intTestNumbers.test_int   s    c8,c8,c4(c7+c6*CFKK(CFKK(CF,,./SW..01CF,,-CF../r   c                B   V P                  \        \        4       V P                  \        \        4       V P	                  \        \
        4       V P	                  \        \        4       V P	                  \        \        4       V P                  R \        R 4      P                  4       V P                  ^ \        R 4      P                  4       V P                  R \        R 4      P                  4       4       V P                  R\        R4      P                  4       4       R# )g333333@Ng333333)assertNotIsSubclassfloatr   r   r!   r   r   r   r#   r$   r%   r&   r)   s   &r   
test_floatTestNumbers.test_float(   s      1  1eT*eW-eV,eCjoo.E#JOO,eCj2245uT{4467r   c                   V P                  \        \        4       V P                  \        \        4       V P                  \        \        4       V P                  \        \        4       V P                  \        \        4       \        ^^4      \        ^^4      r!V P                  \        \        P                  V4       V P                  \        \        P                  W4       V P                  \        \        W4       V P                  \        \        P                  W4       V P                  \        \         V4       V P                  \        \"        V4       R# )   N)r.   complexr   r   r   r!   r   r   assertRaises	TypeErrormathtruncoperatormoddivmodfloordivr/   r"   )r*   c1c2s   &  r   test_complexTestNumbers.test_complex4   s      (3  (3  $/gw/gv.A!B)TZZ4)X\\2:)VR4)X%6%6?)UB/)S"-r    N)	__name__
__module____qualname____firstlineno__r+   r0   r?   __static_attributes____classdictcell____classdict__s   @r   r   r      s     0
8. .r   r   c                   8   a  ] tR t^Et o R tR tR tR tRtV t	R# )TestNumbersDefaultMethodsc                
  a \          ! V3R  lR\        4      4       oV P                  \        S! ^^4      4      4       V P                  \        S! ^ ^4      4      4       V P                  \        S! ^^ 4      4      4       V P	                  \        S! ^ ^ 4      4      4       V P                  S! ^^4      \        ^^4      ,
          S! ^^4      4       V P                  \        ^^4      S! ^^4      ,
          S! ^^4      4       R# )c                   f   <a  ] tR t^Gt o R t]R 4       t]R 4       tV3R ltV3R lt	R t
RtV tR# )	9TestNumbersDefaultMethods.test_complex.<locals>.MyComplexc                    Wn         W n        R # r
   )ri)r*   r$   r%   s   &&&r   __init__BTestNumbersDefaultMethods.test_complex.<locals>.MyComplex.__init__I   s    r   c                    V P                   # r
   )rP   r)   s   &r   r$   >TestNumbersDefaultMethods.test_complex.<locals>.MyComplex.realM       vvr   c                    V P                   # r
   )rQ   r)   s   &r   r%   >TestNumbersDefaultMethods.test_complex.<locals>.MyComplex.imagQ   rV   r   c                   < \        V\        4      '       d@   S! V P                  VP                  ,           V P                  VP                  ,           4      # \        hr
   )
isinstancer   r%   r$   r   )r*   other	MyComplexs   &&r   __add__ATestNumbersDefaultMethods.test_complex.<locals>.MyComplex.__add__U   sB    eW--$TYY%;%)YY%;= =))r   c                B   < S! V P                   ) V P                  ) 4      # r
   )r$   r%   r*   r\   s   &r   __neg__ATestNumbersDefaultMethods.test_complex.<locals>.MyComplex.__neg__[   s     $))diiZ88r   c                2   \        V\        4      '       d;   V P                  VP                  8H  ;'       d    V P                  VP                  8H  # \        V\        4      '       d1   V P                  ^ 8H  ;'       d    V P                  VP                  8H  # R# )r   N)rZ   r   r%   r$   r   r*   r[   s   &&r   __eq__@TestNumbersDefaultMethods.test_complex.<locals>.MyComplex.__eq__^   sl    eW--99

2NNtyyEJJ7NNeV,,99>EEdii5::.EE -r   )rQ   rP   N)rB   rC   rD   rE   rR   propertyr$   r%   r]   ra   re   rF   rG   )rI   r\   s   @r   r\   rN   G   sH         *9F Fr   r\   N)r   r   
assertTrueboolassertFalser#   r4   r`   s   &@r   r?   &TestNumbersDefaultMethods.test_complexF   s    		F 	F 
	F: 	Yq!_-.Yq!_-.Yq!_-.i1o./ 	1a71a=8)Aq/J 	A1a8)Aq/Jr   c                   \          ! R  R\        4      4       pV P                  \        V! ^4      ^4      R4       V P                  \        ^V! ^4      4      R4       V P                  \	        V! ^4      4      R4       V P                  V! ^4      P
                  ^4       V P                  V! ^4      P                  ^ 4       V P                  V! ^{4      P                  4       ^{4       R# )c                   J   a  ] tR t^qt o R tR tR tR tR tR t	R t
RtV tR	# )
3TestNumbersDefaultMethods.test_real.<locals>.MyRealc                    Wn         R # r
   nr*   rq   s   &&r   rR   <TestNumbersDefaultMethods.test_real.<locals>.MyReal.__init__s       r   c                    V P                   # r
   rp   r)   s   &r   __pos__;TestNumbersDefaultMethods.test_real.<locals>.MyReal.__pos__v       vvr   c                ,    \        V P                  4      # r
   )r/   rq   r)   s   &r   	__float__=TestNumbersDefaultMethods.test_real.<locals>.MyReal.__float__y   s    TVV}$r   c                (    V P                   V,          # r
   rp   rd   s   &&r   __floordiv__@TestNumbersDefaultMethods.test_real.<locals>.MyReal.__floordiv__|   s    vv&r   c                &    WP                   ,          # r
   rp   rd   s   &&r   __rfloordiv__ATestNumbersDefaultMethods.test_real.<locals>.MyReal.__rfloordiv__   s    &r   c                (    V P                   V,          # r
   rp   rd   s   &&r   __mod__;TestNumbersDefaultMethods.test_real.<locals>.MyReal.__mod__   s    vv~%r   c                &    WP                   ,          # r
   rp   rd   s   &&r   __rmod__<TestNumbersDefaultMethods.test_real.<locals>.MyReal.__rmod__   s    vv~%r   rp   N)rB   rC   rD   rE   rR   rv   rz   r}   r   r   r   rF   rG   rH   s   @r   MyRealrn   q   s-     %''&& &r   r   N)   r   y      ?        )r   r   r#   r;   r4   r$   r%   r&   )r*   r   s   & r   	test_real#TestNumbersDefaultMethods.test_realp   s    		&T 	& 
	&. 	q	1-v6 	6!9-v6 	+T2 	+ 	+ 	..0#6r   c                z    \          ! R  R\        4      4       pV P                  \        V! ^^4      4      R4       R# )c                   F   a  ] tR t^t o R t]R 4       t]R 4       tRtV t	R# );TestNumbersDefaultMethods.test_rational.<locals>.MyRationalc                    Wn         W n        R # r
   )rq   d)r*   r'   r(   s   &&&r   rR   DTestNumbersDefaultMethods.test_rational.<locals>.MyRational.__init__   s    "$r   c                    V P                   # r
   rp   r)   s   &r   r'   ETestNumbersDefaultMethods.test_rational.<locals>.MyRational.numerator   rV   r   c                    V P                   # r
   )r   r)   s   &r   r(   GTestNumbersDefaultMethods.test_rational.<locals>.MyRational.denominator   rV   r   )r   rq   N)
rB   rC   rD   rE   rR   rg   r'   r(   rF   rG   rH   s   @r   
MyRationalr      s2     %    r   r   g      @N)r   r   r#   r/   )r*   r   s   & r   test_rational'TestNumbersDefaultMethods.test_rational   s9    		 	 
	 	z!Q/0#6r   c                X   \          ! R  R\        4      4       pV P                  \        P                  ! V! ^{4      4      ^{4       V P                  \        V! ^{4      4      R4       V P                  V! ^{4      P                  ^{4       V P                  V! ^{4      P                  ^4       R# )c                   2   a  ] tR t^t o R tR tR tRtV tR# );TestNumbersDefaultMethods.test_integral.<locals>.MyIntegralc                    Wn         R # r
   rp   rr   s   &&r   rR   DTestNumbersDefaultMethods.test_integral.<locals>.MyIntegral.__init__   rt   r   c                    V P                   # r
   rp   r)   s   &r   rv   CTestNumbersDefaultMethods.test_integral.<locals>.MyIntegral.__pos__   rx   r   c                    V P                   # r
   rp   r)   s   &r   __int__CTestNumbersDefaultMethods.test_integral.<locals>.MyIntegral.__int__   rx   r   rp   N)	rB   rC   rD   rE   rR   rv   r   rF   rG   rH   s   @r   
MyIntegralr      s      r   r   g     ^@N)r   r   r#   r9   indexr/   r'   r(   )r*   r   s   & r   test_integral'TestNumbersDefaultMethods.test_integral   s    		 	 
	 	
38#> 	z#/7 	C22C8 	C44a8r   rA   N)
rB   rC   rD   rE   r?   r   r   r   rF   rG   rH   s   @r   rK   rK   E   s!     (KT(7V7&9 9r   rK   __main__)r   r7   r9   unittestnumbersr   r   r   r   r   r   TestCaser   rK   rB   mainrA   r   r   <module>r      s^        = =).(## ).X9 1 1 9D zMMO r   