|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/22697/root/usr/lib64/python2.4/test/ |
Upload File : |
mò
‚=5Dc @ s d Z d k l Z d k Z d k l Z l Z l Z e d ƒ Z d e i
f d „ ƒ YZ d „ Z e
d j o e ƒ n d S( s0
Tests for fpformat module
Nick Mathewson
( s run_unittestN( s fixs scis
NotANumbert t FpformatTestc B s5 t Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( Nc C sY t | | ƒ } t | t ƒ o t | ƒ } n d | t | ƒ f } | i
| | ƒ d S( Ns %.*f( t fixt nt digitst resultt
isinstancet
StringTypet reprt floatt expectedt selft assertEquals( R R R R R
( ( t* /usr/lib64/python2.4/test/test_fpformat.pyt checkFix s
c C s« t | | ƒ } t | t ƒ o t | ƒ } n d | t | ƒ f } | i d ƒ \ } } t | ƒ d j o | d d | d } n d | | f } | i | | ƒ d S( Ns %.*et ei i t 0i s %se%s( t sciR R R R R R R R
t splitt numt expt lenR R ( R R R R R R R
( ( R
t checkSci s c C s>