# HG changeset patch # User Pierre-Yves David # Date 1643366733 -3600 # Node ID f7d7facd7b9f5fb3121a9a96ba38fd82400359a2 # Parent 3984e7d4b9fd3b50fa7cfa5f494ab9bc3a4bd4be rank: add test with golden values This adds a regression test for the computation of the rank, using the current values computed with the naive algorithm as the "golden" reference. Differential Revision: https://phab.mercurial-scm.org/D12142 diff -r 3984e7d4b9fd -r f7d7facd7b9f tests/test-rank.t --- a/tests/test-rank.t Fri Jan 28 11:45:18 2022 +0100 +++ b/tests/test-rank.t Fri Jan 28 11:45:33 2022 +0100 @@ -36,3 +36,188 @@ $ cd .. + +Build a bigger example repo + + $ hg init rank-repo-generated + $ cd rank-repo-generated + $ hg debugbuilddag '.:root1+5:mp1