[0.3.x] added: failed tests (function prototype)

git-svn-id: https://pykd.svn.codeplex.com/svn@84454 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\EreTIk_cp 2013-07-24 17:14:14 +00:00 committed by Mikhail I. Izmestev
parent 0eeb81b022
commit 0f1c514e8c

View File

@ -259,3 +259,10 @@ class TypeInfoTest( unittest.TestCase ):
functype = target.module.typedVar( "CdeclStaticMethodPtr" ).type().deref() functype = target.module.typedVar( "CdeclStaticMethodPtr" ).type().deref()
self.assertEqual( [ arg.name() for arg in functype ], [] ) self.assertEqual( [ arg.name() for arg in functype ], [] )
def testFunctionName(self):
functype = target.module.typedVar( "CdeclFuncPtr" ).type().deref()
self.assertEqual(functype.name(), "Void(__cdecl)(Int4B, Float)")
def testFunctionPtrName(self):
funcptrtype = target.module.typedVar( "CdeclFuncPtr" ).type()
self.assertEqual(funcptrtype.name(), "Void(__cdecl*)(Int4B, Float)")