tests/test-rust-revlog.py
changeset 44012 443dc1655923
parent 44011 c627f1b2f3c3
child 45942 89a2afe31e82
--- a/tests/test-rust-revlog.py	Thu Dec 12 18:11:44 2019 +0100
+++ b/tests/test-rust-revlog.py	Thu Dec 12 03:39:14 2019 +0100
@@ -25,6 +25,13 @@
         rustidx = revlog.MixedIndex(idx)
         self.assertEqual(rustidx.headrevs(), idx.headrevs())
 
+    def test_get_cindex(self):
+        # drop me once we no longer need the method for shortest node
+        idx = self.parseindex()
+        rustidx = revlog.MixedIndex(idx)
+        cidx = rustidx.get_cindex()
+        self.assertTrue(idx is cidx)
+
     def test_len(self):
         idx = self.parseindex()
         rustidx = revlog.MixedIndex(idx)