OOPS
|
Go to the source code of this file.
Namespaces | |
compare | |
Functions | |
def | compare.line_diff (line1, line2, lnum, ftol, idif) |
Variables | |
compare.file_run = open(sys.argv[1], "r") | |
compare.file_ref = open(sys.argv[2], "r") | |
compare.ftol = float(sys.argv[3]) | |
compare.idif = int(sys.argv[4]) | |
compare.file_runref = open(str(sys.argv[1])+".ref","w") | |
compare.lines_ref = file_ref.readlines() | |
compare.rennm = re.compile('(^\D+[\d]*[\D]*$)') | |
compare.reflt = re.compile('(^[\D]*?[-]?\d+\.\d+(?:[e][+-]?[\d]+)?[\,]?$)') | |
compare.reint = re.compile('(^[-]?\d+[\,]?$)') | |
compare.redat = re.compile('(^\d{4}[-]\d{2}[-]\d{2}[T]\d{2}[:]\d{2}[:]\d{2}[Z][\:]?$)') | |
compare.reflte = re.compile('([+-]?\d+\.\d+(?:[e][+-]?[\d]+)?)') | |
compare.reinte = re.compile('([+-]?\d+)') | |
int | compare.refline = 0 |
int | compare.error = 0 |
bool | compare.testfound = False |
compare.line_strip = line_run[line_run.find('Test : '):] | |
def | compare.lineerror = line_diff(line_strip,lines_ref[refline],refline+1,ftol,idif) |