unitTestSupport
- unitTestSupport.compareArray(trueStates, dataStates, accuracy, msg, testFailCount, testMessages)[source]
Compare two arrays size and values and check absolute accuracy
- unitTestSupport.compareArrayND(trueStates, dataStates, accuracy, msg, size, testFailCount, testMessages)[source]
Compare two arrays of size N for size and values and check absolute accuracy
- unitTestSupport.compareArrayRelative(trueStates, dataStates, accuracy, msg, testFailCount, testMessages)[source]
Checks whether the relative distance between elements of a pullMessageLogData-derived array and a truth array is below a provided accuracy, and return an error if not.
- Parameters:
trueStates – iterable of size (m,n);
dataStates – iterable of size (m,n)
accuracy – Relative accuracy boundary
msg
testFailCount
testMessages
- unitTestSupport.compareDoubleArray(trueStates, dataStates, accuracy, msg, testFailCount, testMessages)[source]
Compare two arrays of doubles for size and values and check absolute accuracy
- unitTestSupport.compareDoubleArrayRelative(trueStates, dataStates, accuracy, msg, testFailCount, testMessages)[source]
Compare two arrays of doubles for size and values and check relative accuracy
- unitTestSupport.compareList(trueStates, dataStates, accuracy, msg, testFailCount, testMessages)[source]
Compare two row lists of values and check relative accuracy
- unitTestSupport.compareListRelative(trueStates, dataStates, accuracy, msg, testFailCount, testMessages)[source]
Compare two row lists of values and check relative accuracy
- unitTestSupport.compareVector(trueStates, dataStates, accuracy, msg, testFailCount, testMessages, ExpectedResult=1)[source]
Compare two vector size and values and check absolute accuracy
- unitTestSupport.isArrayEqual(result, truth, dim, accuracy)[source]
function to check if an array of values is the same as the truth values
- unitTestSupport.isArrayEqualRelative(result, truth, dim, accuracy)[source]
Compare relative accuracy of two arrays
- unitTestSupport.isArrayZero(result, dim, accuracy)[source]
function to check if an array of values are zero
- unitTestSupport.isDoubleEqual(result, truth, accuracy)[source]
function to check if a double equals a truth value