tests/test-parseindex2.py
changeset 16414 e8d37b78acfb
parent 16363 2cdd7e63211b
child 16620 e22d6b1dec1d
--- a/tests/test-parseindex2.py	Thu Apr 12 20:22:18 2012 -0500
+++ b/tests/test-parseindex2.py	Thu Apr 12 14:05:59 2012 -0700
@@ -110,6 +110,13 @@
     if py_res_2 != c_res_2:
         print "Parse index result (no inlined data) differs!"
 
+    ix = parsers.parse_index2(data_inlined, True)[0]
+    for i, r in enumerate(ix):
+        if r[7] == nullid:
+            i = -1
+        if ix[r[7]] != i:
+            print 'Reverse lookup inconsistent for %r' % r[7].encode('hex')
+
     print "done"
 
 runtest()