From 0f1c514e8c670d48948e166b804408bde9fe52f5 Mon Sep 17 00:00:00 2001 From: "SND\\EreTIk_cp" Date: Wed, 24 Jul 2013 17:14:14 +0000 Subject: [PATCH] [0.3.x] added: failed tests (function prototype) git-svn-id: https://pykd.svn.codeplex.com/svn@84454 9b283d60-5439-405e-af05-b73fd8c4d996 --- test/scripts/typeinfo.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/scripts/typeinfo.py b/test/scripts/typeinfo.py index 89bd693..1994d61 100644 --- a/test/scripts/typeinfo.py +++ b/test/scripts/typeinfo.py @@ -259,3 +259,10 @@ class TypeInfoTest( unittest.TestCase ): functype = target.module.typedVar( "CdeclStaticMethodPtr" ).type().deref() 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)")