Show More
@@ -207,6 +207,16 b' class parseindex2tests(unittest.TestCase' | |||||
207 | # pure version doesn't support this |
|
207 | # pure version doesn't support this | |
208 | break |
|
208 | break | |
209 |
|
209 | |||
|
210 | def testminusone(self): | |||
|
211 | want = (0, 0, 0, -1, -1, -1, -1, nullid) | |||
|
212 | index, junk = parsers.parse_index2(data_inlined, True) | |||
|
213 | got = index[-1] | |||
|
214 | self.assertEqual(want, got) # inline data | |||
|
215 | ||||
|
216 | index, junk = parsers.parse_index2(data_non_inlined, False) | |||
|
217 | got = index[-1] | |||
|
218 | self.assertEqual(want, got) # no inline data | |||
|
219 | ||||
210 | if __name__ == '__main__': |
|
220 | if __name__ == '__main__': | |
211 | import silenttestrunner |
|
221 | import silenttestrunner | |
212 | silenttestrunner.main(__name__) |
|
222 | silenttestrunner.main(__name__) |
General Comments 0
You need to be logged in to leave comments.
Login now