From 131d04ea52fa194d8e027e495ca3b46e4b36f0ae Mon Sep 17 00:00:00 2001 From: Michael Allen Date: Wed, 16 Sep 2015 15:15:33 +0100 Subject: Test the new functions directly --- test-commits.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test-commits.sh') diff --git a/test-commits.sh b/test-commits.sh index 8aa2da2..1a4a86c 100755 --- a/test-commits.sh +++ b/test-commits.sh @@ -378,6 +378,7 @@ test_local_commits() { assertEquals "" "$(zsh_color_local_commits)" assertEquals "" "$(bash_color_local_commits)" + assertEquals "" "$(color_local_commits)" git init --quiet touch README @@ -394,6 +395,7 @@ test_local_commits() { assertEquals "" "$(zsh_color_local_commits)" assertEquals "" "$(bash_color_local_commits)" + assertEquals "" "$(color_local_commits)" cd "$repo" echo "bar" > bar @@ -402,6 +404,7 @@ test_local_commits() { assertEquals " 1$up" "$(zsh_color_local_commits)" assertEquals " 1$up" "$(bash_color_local_commits)" + assertEquals " 1$up" "$(color_local_commits)" cd "$remote" echo "foo" > foo @@ -413,11 +416,13 @@ test_local_commits() { assertEquals " 1${both}1" "$(zsh_color_local_commits)" assertEquals " 1${both}1" "$(bash_color_local_commits)" + assertEquals " 1${both}1" "$(color_local_commits)" git reset --hard HEAD^ --quiet assertEquals " 1$down" "$(zsh_color_local_commits)" assertEquals " 1$down" "$(bash_color_local_commits)" + assertEquals " 1$down" "$(color_local_commits)" } . ./shunit/shunit2 -- cgit v1.2.3