##// END OF EJS Templates
parsers: clarify documentation of test-parseindex2.py...
Chris Jerdonek -
r20166:7eda5bb9 default
parent child Browse files
Show More
@@ -1,11 +1,9 b''
1 """This unit test tests parsers.parse_index2()."""
2
1 3 from mercurial import parsers
2 4 from mercurial.node import nullid, nullrev
3 5 import struct
4 6
5 # This unit test compares the return value of the original Python
6 # implementation of parseindex and the new C implementation for
7 # an index file with and without inlined data
8
9 7 # original python implementation
10 8 def gettype(q):
11 9 return int(q & 0xFFFF)
@@ -106,6 +104,9 b' def runtest() :'
106 104 else:
107 105 print "Expected to get TypeError."
108 106
107 # Check parsers.parse_index2() on an index file against the original
108 # Python implementation of parseindex, both with and without inlined data.
109
109 110 py_res_1 = py_parseindex(data_inlined, True)
110 111 c_res_1 = parse_index2(data_inlined, True)
111 112
General Comments 0
You need to be logged in to leave comments. Login now