def testArrayCasts(self):
     arraytypes = [fracttypes.IntArray]
     for t in arraytypes:
         self.assertEqual(True,
                          fracttypes.canBeCast(fracttypes.VoidArray, t))
         self.assertEqual(False,
                          fracttypes.canBeCast(t, fracttypes.VoidArray))
 def testArrayCasts(self):
     arraytypes = [ fracttypes.IntArray ]
     for t in arraytypes:
         self.assertEqual(True, fracttypes.canBeCast(fracttypes.VoidArray, t))
         self.assertEqual(False, fracttypes.canBeCast(t, fracttypes.VoidArray))
 def testCastsToSelf(self):
     for type in fracttypes.typeList:
         self.assertEqual(True, fracttypes.canBeCast(type, type))
 def testCastsToSelf(self):
     for type in fracttypes.typeList:
         self.assertEqual(True, fracttypes.canBeCast(type, type))