Mercurial > public > mercurial-scm > hg
diff tests/test-rust-revlog.py @ 52787:e5f89bd1a5ee
rust-pyo3-revlog: _index___len__
author | Georges Racinet <georges.racinet@cloudcrane.io> |
---|---|
date | Wed, 25 Dec 2024 17:15:35 +0100 |
parents | 4e34e8fd46d4 |
children | 34f44aa5e844 |
line wrap: on
line diff
--- 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)