tests/test-rank.t
author Martin von Zweigbergk <martinvonz@google.com>
Tue, 18 Jan 2022 13:05:21 -0800
changeset 49060 f3aafd785e65
parent 48767 f7d7facd7b9f
permissions -rw-r--r--
filemerge: add support for partial conflict resolution by external tool A common class of merge conflicts is in imports/#includes/etc. It's relatively easy to write a tool that can resolve these conflicts, perhaps by naively just unioning the statements and leaving any cleanup to other tools to do later [1]. Such specialized tools cannot generally resolve all conflicts in a file, of course. Let's therefore call them "partial merge tools". Note that the internal simplemerge algorithm is such a partial merge tool - one that only resolves trivial "conflicts" where one side is unchanged or both sides change in the same way. One can also imagine having smarter language-aware partial tools that merge the AST. It may be useful for such tools to interactively let the user resolve any conflicts it can't resolve itself. However, having the option of implementing it as a partial merge tool means that the developer doesn't *need* to create a UI for it. Instead, the user can resolve any remaining conflicts with their regular merge tool (e.g. `:merge3` or `meld). We don't currently have a way to let the user define such partial merge tools. That's what this patch addresses. It lets the user configure partial merge tools to run. Each tool can be configured to run only on files matching certain patterns (e.g. "*.py"). The tool takes three inputs (local, base, other) and resolves conflicts by updating these in place. For example, let's say the inputs are these: base: ``` import sys def main(): print('Hello') ``` local: ``` import os import sys def main(): print('Hi') ``` other: ``` import re import sys def main(): print('Howdy') ``` A partial merge tool could now resolve the conflicting imports by replacing the import statements in *all* files by the following snippet, while leaving the remainder of the files unchanged. ``` import os import re import sys ``` As a result, simplemerge and any regular merge tool that runs after the partial merge tool(s) will consider the imports to be non-conflicting and will only present the conflict in `main()` to the user. Differential Revision: https://phab.mercurial-scm.org/D12356
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
48766
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
     1
=============================================================
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
     2
Check that we can compute and exchange revision rank properly
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
     3
=============================================================
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
     4
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
     5
  $ cat << EOF >> $HGRCPATH
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
     6
  > [format]
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
     7
  > exp-use-changelog-v2=enable-unstable-format-and-corrupt-my-data
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
     8
  > EOF
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
     9
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
    10
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
    11
Test minimal rank computation with merge
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
    12
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
    13
  $ hg init rank-repo-minimal
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
    14
  $ cd rank-repo-minimal
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
    15
  $ touch 0
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
    16
  $ hg commit -Aqm 0
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
    17
  $ touch 1
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
    18
  $ hg commit -Aqm 1
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
    19
  $ hg update -qr 0
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
    20
  $ touch 2
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
    21
  $ hg commit -Aqm 2
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
    22
  $ hg merge -qr 1
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
    23
  $ hg commit -m 3
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
    24
  $ touch 4
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
    25
  $ hg commit -Aqm 4
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
    26
  $ hg log --graph --template '{rev} {_fast_rank}\n'
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
    27
  @  4 5
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
    28
  |
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
    29
  o    3 4
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
    30
  |\
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
    31
  | o  2 2
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
    32
  | |
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
    33
  o |  1 2
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
    34
  |/
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
    35
  o  0 1
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
    36
  
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
    37
  $ cd ..
3984e7d4b9fd rank: add minimal test
pacien <pacien.trangirard@pacien.net>
parents:
diff changeset
    38
48767
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    39
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    40
Build a bigger example repo
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    41
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    42
  $ hg init rank-repo-generated
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    43
  $ cd rank-repo-generated
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    44
  $ hg debugbuilddag '.:root1+5:mp1<root1+10:mp2/mp1+3<mp1+2:mp3/mp2$+15/mp1+4'
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    45
  $ hg log -G -T '{desc}'
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    46
  o  r42
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    47
  |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    48
  o  r41
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    49
  |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    50
  o  r40
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    51
  |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    52
  o  r39
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    53
  |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    54
  o    r38
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    55
  |\
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    56
  | o  r37
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    57
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    58
  | o  r36
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    59
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    60
  | o  r35
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    61
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    62
  | o  r34
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    63
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    64
  | o  r33
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    65
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    66
  | o  r32
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    67
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    68
  | o  r31
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    69
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    70
  | o  r30
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    71
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    72
  | o  r29
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    73
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    74
  | o  r28
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    75
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    76
  | o  r27
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    77
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    78
  | o  r26
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    79
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    80
  | o  r25
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    81
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    82
  | o  r24
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    83
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    84
  | o  r23
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    85
  |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    86
  | o    r22
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    87
  | |\
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    88
  | | o  r21
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    89
  | | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    90
  +---o  r20
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    91
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    92
  | | o  r19
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    93
  | | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    94
  | | o  r18
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    95
  | | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    96
  | | o  r17
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    97
  | | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    98
  +---o  r16
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
    99
  | |/
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   100
  | o  r15
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   101
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   102
  | o  r14
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   103
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   104
  | o  r13
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   105
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   106
  | o  r12
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   107
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   108
  | o  r11
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   109
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   110
  | o  r10
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   111
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   112
  | o  r9
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   113
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   114
  | o  r8
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   115
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   116
  | o  r7
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   117
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   118
  | o  r6
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   119
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   120
  o |  r5
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   121
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   122
  o |  r4
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   123
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   124
  o |  r3
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   125
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   126
  o |  r2
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   127
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   128
  o |  r1
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   129
  |/
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   130
  o  r0
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   131
  
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   132
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   133
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   134
Check the rank
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   135
--------------
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   136
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   137
  $ hg log -G -T '{_fast_rank}'
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   138
  o  26
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   139
  |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   140
  o  25
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   141
  |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   142
  o  24
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   143
  |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   144
  o  23
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   145
  |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   146
  o    22
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   147
  |\
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   148
  | o  15
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   149
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   150
  | o  14
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   151
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   152
  | o  13
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   153
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   154
  | o  12
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   155
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   156
  | o  11
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   157
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   158
  | o  10
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   159
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   160
  | o  9
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   161
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   162
  | o  8
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   163
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   164
  | o  7
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   165
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   166
  | o  6
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   167
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   168
  | o  5
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   169
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   170
  | o  4
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   171
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   172
  | o  3
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   173
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   174
  | o  2
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   175
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   176
  | o  1
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   177
  |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   178
  | o    19
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   179
  | |\
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   180
  | | o  8
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   181
  | | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   182
  +---o  7
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   183
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   184
  | | o  20
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   185
  | | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   186
  | | o  19
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   187
  | | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   188
  | | o  18
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   189
  | | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   190
  +---o  17
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   191
  | |/
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   192
  | o  11
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   193
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   194
  | o  10
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   195
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   196
  | o  9
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   197
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   198
  | o  8
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   199
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   200
  | o  7
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   201
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   202
  | o  6
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   203
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   204
  | o  5
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   205
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   206
  | o  4
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   207
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   208
  | o  3
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   209
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   210
  | o  2
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   211
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   212
  o |  6
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   213
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   214
  o |  5
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   215
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   216
  o |  4
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   217
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   218
  o |  3
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   219
  | |
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   220
  o |  2
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   221
  |/
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   222
  o  1
f7d7facd7b9f rank: add test with golden values
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 48766
diff changeset
   223