@matheusbsbs / matheus-bagliano / commits / 1242642c46
Fork 0

annotate-blame: tests incomplete lines.

Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Mar 6, 2006 at 00:41 UTC 1242642c468a7bcc335a676273eae4ced8a55f04
1 file changed +19
t/annotate-tests.sh
+19
@@ -100,3 +100,22 @@ test_expect_success \
100 'Two lines blamed on A, one on B, two on B1, one on B2, one on A U Thor' \
101 'check_count A 2 B 1 B1 2 B2 1 "A U Thor" 1'
102
103 +test_expect_success \
104 + 'an incomplete line added' \
105 + 'echo "incomplete" | tr -d "\\012" >>file &&
106 + GIT_AUTHOR_NAME="C" git commit -a -m "Incomplete"'
107 +
108 +test_expect_success \
109 + 'With incomplete lines.' \
110 + 'check_count A 2 B 1 B1 2 B2 1 "A U Thor" 1 C 1'
111 +
112 +test_expect_success \
113 + 'some edit' \
114 + 'mv file file1 &&
115 + sed -e 1d -e "5s/3A/99/" file1 >file &&
116 + rm -f file1 &&
117 + GIT_AUTHOR_NAME="D" git commit -a -m "edit"'
118 +
119 +test_expect_success \
120 + 'some edit' \
121 + 'check_count A 1 B 1 B1 1 B2 1 "A U Thor" 1 C 1 D 1'