Pass a string by reference.
(self)
| 42 | self.assertEqual(s, 'x') |
| 43 | |
| 44 | def testPassByReference(self): |
| 45 | """Pass a string by reference.""" |
| 46 | a = vtkArray.CreateArray(0, VTK_STRING) |
| 47 | a.SetName("myarray") |
| 48 | s = a.GetName() |
| 49 | self.assertEqual(s, "myarray") |
| 50 | |
| 51 | def testReturnByReference(self): |
| 52 | """Return a string by reference.""" |
nothing calls this directly
no test coverage detected