Move relative date formatting to separate function
[tig.git] / test / graph / 10-shorter-merge-than-branch-test
blobba4c1b25b03e05bd6d39975ea61a0f6debfcbbe4
1 #!/bin/sh
3 # Graph test: shorter merge than branch
5 . libtest.sh
7 test_graph <<EOF
8 commit A H B C D J E
9 Commit A - merge H, B, C, D, and E
10 commit B K
11 Commit B - after K
12 commit C H
13 Commit C - after H
14 commit J I
15 Commit J - after I
16 commit D K
17 Commit D - after K
18 commit E F
19 Commit E - after F
20 commit K F
21 Commit K - after F
22 commit F G H
23 Commit F - merge G and H
24 commit G I
25 Commit G - after I
26 commit H I
27 Commit H - after I
28 commit I
29 Commit I
30 EOF
32 assert_equals stdout <<EOF
33 ●─┬─┬─┬─┬─╮ Commit A - merge H, B, C, D, and E
34 │ ● │ │ │ │ Commit B - after K
35 │ │ ● │ │ │ Commit C - after H
36 │ │ │ │ ● │ Commit J - after I
37 │ │ │ ● │ │ Commit D - after K
38 │ │ │ │ │ ● Commit E - after F
39 │ ●─│─╯ │ │ Commit K - after F
40 │ ●─│─╭─╯─╯ Commit F - merge G and H
41 │ ● │ │ ╭─╯ Commit G - after I
42 ●─│─┴─│─╯ Commit H - after I
43 ◎─┴───╯ Commit I
44 EOF