mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-19 19:13:22 +08:00
[0.1.x] added : reproducing test for issue #10613
git-svn-id: https://pykd.svn.codeplex.com/svn@75296 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
811a673b47
commit
411735a5ee
@ -85,6 +85,11 @@ class TypedVarTest( unittest.TestCase ):
|
||||
self.assertTrue(False)
|
||||
except IndexError:
|
||||
self.assertTrue(True)
|
||||
|
||||
def testArrayFieldSlice(self):
|
||||
tv = target.module.typedVar( "g_struct3" )
|
||||
self.assertEqual( 2, tv.m_arrayField[-1] )
|
||||
self.assertEqual( [ 0, 2 ], tv.m_arrayField[0:2] )
|
||||
|
||||
def testGlobalVar(self):
|
||||
self.assertEqual( 4, target.module.typedVar( "g_ulongValue" ) )
|
||||
|
Loading…
Reference in New Issue
Block a user