Move relative date formatting to separate function
[tig.git] / test / graph / 18-tig-test
blob4af91a733b2f9d9ec954913c48bb25534c9fb521
1 #!/bin/sh
3 # Graph test: tig
5 . libtest.sh
7 test_graph <<EOF
8 commit i h
9 Do not include merges in the announcement's change log
10 commit h g d
11 Merge pull request #81 from esc/fix/reading_git_colors_256
12 commit g f e
13 Merge pull request #80 from esc/fix/option_name_mismatch
14 commit f c
15 Reenable copy/rename detection in the status view
16 commit e c
17 fix: the manpage says 'read-git-colors'
18 commit d c
19 fix: reading git colors in rang 0 255
20 commit c b
21 Remove enforced diff move/copy detection
22 commit b a
23 Optionally show commit IDs for branches and tree entries
24 * \e[33md10dcd8\e[m\e[33m (\e[1;36mHEAD\e[m\e[33m)\e[m Do not include merges in the announcement's change log
25 * \e[33m7cdab00\e[m Merge pull request #81 from esc/fix/reading_git_colors_256
26 \e[32m|\e[m\e[33m\\e[m
27 \e[32m|\e[m * \e[33m54e8c4d\e[m fix: reading git colors in rang 0 255
28 * \e[33m|\e[m \e[33m7368b5b\e[m Merge pull request #80 from esc/fix/option_name_mismatch
29 \e[34m|\e[m\e[35m\\e[m \e[33m\\e[m
30 \e[34m|\e[m * \e[33m|\e[m \e[33m0431cd2\e[m fix: the manpage says 'read-git-colors'
31 \e[34m|\e[m \e[33m|\e[m\e[33m/\e[m
32 * \e[33m|\e[m \e[33m82458a4\e[m Reenable copy/rename detection in the status view
33 \e[33m|\e[m\e[33m/\e[m
34 * \e[33m6d276a6\e[m Remove enforced diff move/copy detection
35 * \e[33mc5aaa84\e[m Optionally show commit IDs for branches and tree entries
36 EOF
38 assert_equals stdout <<EOF
39 ● Do not include merges in the announcement's change log
40 ●─╮ Merge pull request #81 from esc/fix/reading_git_colors_256
41 ●─│─╮ Merge pull request #80 from esc/fix/option_name_mismatch
42 ● │ │ Reenable copy/rename detection in the status view
43 │ │ ● fix: the manpage says 'read-git-colors'
44 │ ● │ fix: reading git colors in rang 0 255
45 ●─┴─╯ Remove enforced diff move/copy detection
46 ● Optionally show commit IDs for branches and tree entries
47 EOF