Mercurial > paraspace
comparison paraspace/tests/dex_deptracker_test.py @ 135:b488ca519709
Make sure elements are absolute incremental for sorted arrays when injecting.
- All sorted array of DEXFile must be absolute incremental.
- If injected one is the same order as one already in the array, the one
in array are used to replace injected one.
- All references to clone and injected one refer to ones already in array
instead.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Tue, 09 Aug 2011 21:28:13 +0800 |
parents | 044bfc415577 |
children | 90690a001172 |
comparison
equal
deleted
inserted
replaced
134:3dee4d929e1f | 135:b488ca519709 |
---|---|
226 assert hello_linked.typeIds.items[-1] == last | 226 assert hello_linked.typeIds.items[-1] == last |
227 | 227 |
228 assert typeid10 > typeid12 | 228 assert typeid10 > typeid12 |
229 assert hello_linked.typeIds.items[10] == typeid12 | 229 assert hello_linked.typeIds.items[10] == typeid12 |
230 assert hello_linked.typeIds.items[12] == typeid10 | 230 assert hello_linked.typeIds.items[12] == typeid10 |
231 pass | 231 |
232 for protoid0, protoid1 in map(None, | |
233 hello_linked.protoIds.items[:-1], | |
234 hello_linked.protoIds.items[1:]): | |
235 assert protoid0 < protoid1 | |
236 pass | |
237 pass |