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

Method testVariantExtract

Common/Core/Testing/Python/TestVariant.py:163–168  ·  view source on GitHub ↗

Use vtkVariantExtract

(self)

Source from the content-addressed store, hash-verified

161 self.assertEqual(l, s)
162
163 def testVariantExtract(self):
164 """Use vtkVariantExtract"""
165 l = [1, '2', cedilla, 4.0, vtkObject()]
166 s = [vtkVariant(x) for x in l]
167 m = [vtkVariantExtract(x) for x in s]
168 self.assertEqual(l, m)
169
170 def testHash(self):
171 """Use a variant as a dict key"""

Callers

nothing calls this directly

Calls 3

vtkVariantExtractFunction · 0.90
vtkObjectClass · 0.50
vtkVariantClass · 0.50

Tested by

no test coverage detected