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

Method testIntConstructor

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

Construct from int

(self)

Source from the content-addressed store, hash-verified

54 self.assertEqual(v.ToString(), u.ToString())
55
56 def testIntConstructor(self):
57 """Construct from int"""
58 v = vtkVariant(10)
59 self.assertEqual(v.GetType(), VTK_INT)
60 self.assertEqual(v.ToInt(), 10)
61
62 def testFloatConstructor(self):
63 """Construct from float"""

Callers

nothing calls this directly

Calls 3

vtkVariantClass · 0.50
GetTypeMethod · 0.45
ToIntMethod · 0.45

Tested by

no test coverage detected