!C99Shell v. 1.0 pre-release build #16!

Software: Apache/2.0.54 (Fedora). PHP/5.0.4 

uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 

uid=48(apache) gid=48(apache) groups=48(apache)
context=system_u:system_r:httpd_sys_script_t
 

Safe-mode: OFF (not secure)

/usr/lib/4Suite/tests/Xml/Core/   drwxr-xr-x
Free 3.74 GB of 27.03 GB (13.83%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     test_format_number.py (1.11 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
from Ft.Xml.Lib.routines import FormatNumber

# decimal separator (.)
# grouping separator (,)
# infinity (Infinity)
# minus (-)
# not-a-number (NaN)
# percent (%)
# per-mille unichr(0x2030)
# zero digit (0)
# decimal digit (#)
# pattern separator (;)

decimal_format = ('.', ',', "Inf", '-', "Not-A-Number", '%', '?', '0', '#', ';')

g_tests = [(3.45,'#.##','3.45'),
           (-3.45, '#.##', '-3.45'),
           (3.45,'###.#####','3.45'),
           (3.45,'###.0000','3.4500'),
           (3.45,'###.##;#.##','3.45'),
           (-3.45,'###.##;(#.##)','(3.45)'),
           (3.45,'###.##;(#.##)','3.45'),
           (1234567.89,'######,###.##','1,234,567.89'),
           (1234567.901,'######,###.##','1,234,567.9'),
           (0.000008,'#0.00','0.00'),
           (.00256323814392,'0.00000','0.00256'),
           (0, '0.0', '0.0'),
           ]

def Test(tester):

    tester.startGroup("Format number")
    for num,format,exp in g_tests:
        tester.startTest("%s with %s" %(str(num),format))
        act = FormatNumber(num,format,decimal_format)
        tester.compare(exp,act)
        tester.testDone()
    tester.groupDone()

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0038 ]--