File: 04-missing-bar-test

package info (click to toggle)
tig 2.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,388 kB
  • sloc: ansic: 32,985; sh: 10,118; makefile: 389
file content (32 lines) | stat: -rwxr-xr-x 595 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh
#
# Graph test: missing bar

. libtest.sh

test_graph <<EOF
commit A B C
    Commit A - Merge B and C
commit B D E
    Commit B - Merge D and E
commit C F
    Commit C after F
commit F G D
    Commit F - Merge G and D
commit D G
    Commit D after G
commit G E
    Commit G after E
commit E
    Commit E
EOF

assert_equals stdout <<EOF
●─╮ Commit A - Merge B and C
●─│─╮ Commit B - Merge D and E
│ ∙ │ Commit C after F
│ ●─│─╮ Commit F - Merge G and D
∙─│─│─╯ Commit D after G
∙─╯ │ Commit G after E
◎───╯ Commit E
EOF