--- a/tests/test-rust-revlog.py Wed Dec 25 16:16:22 2024 +0100
+++ b/tests/test-rust-revlog.py Wed Dec 25 17:15:35 2024 +0100
@@ -46,6 +46,10 @@
self.assertIsNone(idx.partialmatch(self.bogus_node_hex[:3]))
self.assertEqual(idx.shortest(self.node0), 1)
+ def test_len(self):
+ idx = self.parserustindex()
+ self.assertEqual(len(idx), 4)
+
# Conditional skipping done by the base class
class RustInnerRevlogTest(
@@ -57,10 +61,6 @@
idx = self.parserustindex()
self.assertEqual(idx.headrevs(), [3])
- def test_len(self):
- idx = self.parserustindex()
- self.assertEqual(len(idx), 4)
-
def test_ancestors(self):
rustidx = self.parserustindex()
lazy = LazyAncestors(rustidx, [3], 0, True)