MCPcopy Create free account
hub / github.com/Kitware/VTK / TestAffineArray

Function TestAffineArray

Common/Core/Testing/Python/TestImplicitArrayInstantiation.py:46–50  ·  view source on GitHub ↗
(affineArray, slope, intercept)

Source from the content-addressed store, hash-verified

44
45# ------------------------------------------------------------------------------
46def TestAffineArray(affineArray, slope, intercept):
47 affineArray.SetNumberOfTuples(42)
48 affineArray.ConstructBackend(slope, intercept)
49 if not CheckResult(affineArray.GetValue(1), slope + intercept):
50 print("ERROR: {} failed.".format(type(affineArray)))
51
52
53# ------------------------------------------------------------------------------

Callers 1

InstantiateNumericTypesFunction · 0.70

Calls 6

CheckResultFunction · 0.70
printFunction · 0.50
typeEnum · 0.50
SetNumberOfTuplesMethod · 0.45
GetValueMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected