%PDF- %PDF-
Direktori : /usr/local/lib/python2.7/test/ |
Current File : //usr/local/lib/python2.7/test/test_fractions.pyo |
ó Nêáac @ ss d Z d d l m Z d d l m Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z m Z d d l m Z m Z e j Z e j Z e j e j d ƒ j d ƒ d ƒ Z d e f d „ ƒ YZ d e f d „ ƒ YZ d e j f d „ ƒ YZ d e j f d „ ƒ YZ d „ Z d e j f d „ ƒ YZ d „ Z e! d k roe ƒ n d S( s Tests for Lib/fractions.py.iÿÿÿÿ( t Decimal( t run_unittestN( t copyt deepcopy( t dumpst loadst doublet IEEEs test requires IEEE 754 doublest DummyFloatc B sk e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z e Z d Z RS( s8 Dummy float class for testing comparisons with Fractionsc C s+ t | t ƒ s t d ƒ ‚ n | | _ d S( Ns- DummyFloat can only be initialized from float( t isinstancet floatt TypeErrort value( t selfR ( ( s/ /usr/local/lib/python2.7/test/test_fractions.pyt __init__ s c C sU t | t j ƒ r+ | t j | j ƒ | ƒ St | t ƒ rM | | j | j ƒ St Sd S( N( R t numberst Rationalt Ft from_floatR R t NotImplemented( R t othert op( ( s/ /usr/local/lib/python2.7/test/test_fractions.pyt _richcmp s c C s | j | t j ƒ S( N( R t operatort eq( R R ( ( s/ /usr/local/lib/python2.7/test/test_fractions.pyt __eq__% t c C s | j | t j ƒ S( N( R R t le( R R ( ( s/ /usr/local/lib/python2.7/test/test_fractions.pyt __le__&