Statistiques
| Révision :

root / pobysoPythonSage / src / testSageMpfr.sage @ 160

Historique | Voir | Annoter | Télécharger (762 octet)

1
"""
2
@file testSageMpfr.sage
3
Test module for pobyso.py functions.
4

    
5
AUTHORS:
6
- S.T. (2015-05-04): initial version
7

    
8
TODO:
9
- almost everything!
10

    
11
"""
12
print "\ntestSageMpfr loading..."
13
attach(str('/home/storres/recherche/arithmetique/pobysoPythonSage/src/ppsTestFunctions.sage'))
14
#
15

    
16
def test_get_interval_value(repeat=10, number=100):
17
    functionName =  inspect.stack()[0][3]
18
    print "Running", inspect.stack()[0][3], "..."
19
    intervalSa = RIF(1,2)
20
    #
21
    def test(intervalSa):
22
        intervalSaValue = get_interval_value(intervalSa)
23
    #
24
    wrapped = pps_test_wrapper(test,intervalSa)
25
    timing = min(timeit.repeat(wrapped, repeat=repeat, number=number))        
26
    print "\t...", functionName, "done."
27
    return timing
28

    
29
print "\t...testSageMpfr loaded"