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

Function CheckResult

Common/Core/Testing/Python/TestImplicitArrayInstantiation.py:29–34  ·  view source on GitHub ↗
(val, expected)

Source from the content-addressed store, hash-verified

27# ------------------------------------------------------------------------------
28# Compare value with tolerance. Print error if different.
29def CheckResult(val, expected):
30 if not math.isclose(val, expected):
31 print("ERROR: has {} instead of {}".format(val, expected))
32 return False
33
34 return True
35
36
37# ------------------------------------------------------------------------------

Callers 14

TestConstantArrayFunction · 0.70
TestAffineArrayFunction · 0.70
TestIndexedArrayFunction · 0.70
TestCompositeArrayFunction · 0.70
OpenArchiveMethod · 0.50
CloseArchiveMethod · 0.50
InsertIntoArchiveMethod · 0.50
ContainsMethod · 0.50
SetPythonObjectMethod · 0.50
PaintMethod · 0.50
SetPythonObjectMethod · 0.50
ProcessRequestMethod · 0.50

Calls 2

printFunction · 0.50
formatMethod · 0.45

Tested by

no test coverage detected