mς %U²Ic @sβdkZdkZdkZdfd„ƒYZdfd„ƒYZdddddd gddedƒedƒg Zd d d d ddgZdgZd„Z d„Z d„Z d„Z ei ddedƒe ƒe ƒdS(Nt CoerceNumbercBs#tZd„Zd„Zd„ZRS(NcCs ||_dS(N(targtself(RR((t//data/zmath/lib/python2.4/test/test_coercion.pyt__init__scCsdt|iƒS(Ns(treprRR(R((Rt__repr__ scCs5t|tƒo|i|ifSn|i|fSdS(N(t isinstancetotherRRR(RR((Rt __coerce__ s(t__name__t __module__RRR (((RRs  t MethodNumbercBstZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d „Z d „Z d „Z d „Z d „Zd„Zd„ZRS(NcCs ||_dS(N(RR(RR((RRscCsdt|iƒS(Ns(RRR(R((RRscCs |i|S(N(RRR(RR((Rt__add__scCs ||iS(N(RRR(RR((Rt__radd__ scCs |i|S(N(RRR(RR((Rt__sub__#scCs ||iS(N(RRR(RR((Rt__rsub__&scCs |i|S(N(RRR(RR((Rt__mul__)scCs ||iS(N(RRR(RR((Rt__rmul__,scCs |i|S(N(RRR(RR((Rt__div__/scCs ||iS(N(RRR(RR((Rt__rdiv__2scCs |i|S(N(RRR(RR((Rt__pow__5scCs ||iS(N(RRR(RR((Rt__rpow__8scCs |i|S(N(RRR(RR((Rt__mod__;scCs ||iS(N(RRR(RR((Rt__rmod__>scCst|i|ƒS(N(tcmpRRR(RR((Rt__cmp__As(R R RRR RRRRRRRRRRRR(((RR s              if4.0lx0.00.0it+t-t*t/s**t%tdivmodcCs't|ƒdjodSn d|SdS(Nf0.01s0.0s%.1f(tabstvalue(R"((Rt format_floatKscCs\t|tƒo$dt|iƒt|iƒfSnt|tƒot|ƒSnt|ƒS(Ns (%s + %sj)(RR"tcomplexR#trealtimagtfloattstr(R"((Rt format_resultRs $cBsxeD] }xeD]ϋ}xςeD]κ}d|||fGyed|ƒ}Wn$eiƒd }d|dGHnXdGe |ƒGHye i |ƒ}Wne i j o |}nXd|||fGyd|dUWn$eiƒd }d|dGHq!Xd Ge |ƒGHq!WqWqWdS( Ns%s %s %ssa %s bis... %sit=s %s %s= %ssz %s= bs=>(t candidatestatbt infix_binopstoptevaltxtsystexc_infoterrorR)tcopytztError(R,R-R4R1R6R/((Rtdo_infix_binopsZs0 cCs’x‹tD]ƒ}xztD]r}xitD]a}d|||fGytd|ƒ}Wn$tiƒd }d|dGHq!XdGt |ƒGHq!WqWqWdS(Ns %s(%s, %s)s%s(a, b)is... %siR*( R+R,R-t prefix_binopsR/R0R1R2R3R4R)(R,R-R4R1R/((Rtdo_prefix_binopssstignores+complex divmod\(\), // and % are deprecatedstest.test_coercion$(i(R5R2twarningsRR tNoneR+R.R9R#R)R8R:tfilterwarningstDeprecationWarning( R9R<R R:R)R8R2R+R.R5RR#((Rt?s"   04