Trees | Indices | Help |
|
---|
|
This static class is used for comparing two objects.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
Fail if the two objects are unequal as determined by the '==' operator. Saves the two objects to the current working directory using an unique identifier appended with "_obtained.txt" and "_expected.txt".
|
Check if two strings (or XML strings) are almost equal, which means that: - all pure text part are equal - floats do not differ more than 1% by default or 0.0001 in absolute difference Saves the two objects to the current working directory using an unique identifier appended with "_obtained.txt" and "_expected.txt". @param _oExpected: any python object used as reference, probably a string or an unicode string @param _oObtained: any python object to be compared with the reference, probably a string or an unicode string @param _strComment: a comment to make your assertion more understandable to the user @type _strComment: python string or unicode string. @param _fRelError: maximum relative error defined as a float @param _fAbsError: maximum absolute error defined as a float @param _strExcluded: if a "word" contains this string, it is not taken into account for the comparison @type _strExcluded: string @param _lstExcluded: list of words to be excluded for the comparison @type _lstExcluded: list of strings |
Fail if the filename does not exist.
|
Fails if the _fValue is greater (or equal) than the reference.
|
Fails if the _fValue is greater (or equal) than the reference.
|
Tests if two arrays are similar. Two arrays (vectors, matrices, tensors, ...) if the have : * same shape (always tested), * max(abs(Value - Ref)) < _fAbsMaxDelta if _fAbsMaxDelta is defined * max(abs(Value - Ref)/max(abs(Value),abs(Ref)) < _fRelMaxDelta if _fRelMaxDelta is defined * Sigma(abs(Value - Ref)/max(abs(Value),abs(Ref)) < _fRfactor1 if _fRfactor1 is defined
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jun 20 03:53:30 2014 | http://epydoc.sourceforge.net |