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