##// 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 from mercurial import parsers
3 from mercurial import parsers
2 from mercurial.node import nullid, nullrev
4 from mercurial.node import nullid, nullrev
3 import struct
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 # original python implementation
7 # original python implementation
10 def gettype(q):
8 def gettype(q):
11 return int(q & 0xFFFF)
9 return int(q & 0xFFFF)
@@ -106,6 +104,9 b' def runtest() :'
106 else:
104 else:
107 print "Expected to get TypeError."
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 py_res_1 = py_parseindex(data_inlined, True)
110 py_res_1 = py_parseindex(data_inlined, True)
110 c_res_1 = parse_index2(data_inlined, True)
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