From 32cc0a3298a510022a8683664880ebb688e568d0 Mon Sep 17 00:00:00 2001 From: Sverre Rabbelier Date: Thu, 17 Jul 2008 19:17:04 +0200 Subject: [PATCH] gitstats: Updated the tests to match the new output of 'author -a' Made the tests match the new output of 'author -a' now that it also lists a column with the 'net changes'. --- src/t/t8100-stats.sh | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/t/t8100-stats.sh b/src/t/t8100-stats.sh index 94150b9..629b1af 100755 --- a/src/t/t8100-stats.sh +++ b/src/t/t8100-stats.sh @@ -59,10 +59,9 @@ test_expect_success 'Test that the expected tree was created by setupRepo' ' # Author tests ########### - -echo " 23: 23+ 1- = content.txt - 10: 8+ 2- = docs/README.txt - 3: 3+ 0- = notes.txt" > expected +echo " 23: 23+ 1- 22~ = content.txt + 10: 8+ 2- 6~ = docs/README.txt + 3: 3+ 0- 3~ = notes.txt" > expected test_expect_success \ 'Test that "author -d" filters as expected for the primary author' \ @@ -71,7 +70,7 @@ test_expect_success \ test_cmp expected actual ' -echo " 2: 2+ 0- = content.txt" > expected +echo " 2: 2+ 0- 2~ = content.txt" > expected test_expect_success \ 'Test that "author -d" filters as expected for the secondary author' \ @@ -81,12 +80,12 @@ test_expect_success \ ' echo "author@example.com: - 23: 23+ 1- = content.txt - 10: 8+ 2- = docs/README.txt - 3: 3+ 0- = notes.txt + 23: 23+ 1- 22~ = content.txt + 10: 8+ 2- 6~ = docs/README.txt + 3: 3+ 0- 3~ = notes.txt roh.tua@example.com: - 2: 2+ 0- = content.txt + 2: 2+ 0- 2~ = content.txt " > expected test_expect_success \ @@ -104,9 +103,9 @@ test_expect_success 'Test that "author -f" aggregates as expected' ' test_cmp expected actual ' -echo " 25: 25+ 1- = content.txt - 10: 8+ 2- = docs/README.txt - 3: 3+ 0- = notes.txt" > expected +echo " 25: 25+ 1- 24~ = content.txt + 10: 8+ 2- 6~ = docs/README.txt + 3: 3+ 0- 3~ = notes.txt" > expected test_expect_success 'Test that "author -a" aggregates as expected' ' stats.py author -a > actual -- 2.11.4.GIT