changeset 44:8fc294b06e22

More testcase for combination of cond and value_ref
author Thinker K.F. Li <thinker@codemud.net>
date Sun, 19 Jun 2011 19:52:58 +0800
parents 5cea19126a11
children 71218ba3bc8a
files paraspace/tests/dexfile_test.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/paraspace/tests/dexfile_test.py	Sun Jun 19 19:36:36 2011 +0800
+++ b/paraspace/tests/dexfile_test.py	Sun Jun 19 19:52:58 2011 +0800
@@ -255,4 +255,8 @@
     anno_dir_item = dex.annotationsDirectoryItems.items[1]
     assert isinstance(anno_dir_item.classAnnotationsOffRef.value,
                       dexfile._DEX_AnnotationSetItem)
+
+    clazz_def = dex.classDefs.items[1]
+    assert isinstance(clazz_def.annotationsOffRef.value,
+                      dexfile._DEX_AnnotationsDirectoryItem)
     pass