summaryrefslogtreecommitdiffstats
path: root/test-colors.sh
diff options
context:
space:
mode:
authorMichael Allen <michael@michaelallen.io>2015-09-16 15:29:05 +0100
committerMichael Allen <michael@michaelallen.io>2015-09-16 15:29:05 +0100
commit1f6a8f84946a0cb6936916f47b5a3870fa12a5a6 (patch)
tree71fe36a68b756540e35e996d6a602581c5391d86 /test-colors.sh
parent1fcd42c3ecc41b6a6c4c9e75b6bfe274a1b595e2 (diff)
parenteb9c08b9b0e05ca2aaf958e34979f6ae58af4e61 (diff)
downloadgit-sonar-1f6a8f84946a0cb6936916f47b5a3870fa12a5a6.tar.gz
git-sonar-1f6a8f84946a0cb6936916f47b5a3870fa12a5a6.zip
Merge pull request #63 from michaeldfallen/merge-render-functions
Merge render functions
Diffstat (limited to 'test-colors.sh')
-rwxr-xr-xtest-colors.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/test-colors.sh b/test-colors.sh
index 59a8704..73c20f7 100755
--- a/test-colors.sh
+++ b/test-colors.sh
@@ -293,12 +293,14 @@ test_bash_colors_local() {
printf -v expected " 1\x01local-ahead\x02↑\x01local-reset\x02"
assertEquals "$expected" "$(bash_color_local_commits)"
+ assertEquals "$expected" "$(color_local_commits)"
git push --quiet >/dev/null
git reset --hard head^ --quiet >/dev/null
printf -v expected " 1\x01local-behind\x02↓\x01local-reset\x02"
assertEquals "$expected" "$(bash_color_local_commits)"
+ assertEquals "$expected" "$(color_local_commits)"
echo "foo" > foo
git add .
@@ -306,6 +308,7 @@ test_bash_colors_local() {
printf -v expected " 1\x01local-diverged\x02⇵\x01local-reset\x021"
assertEquals "$expected" "$(bash_color_local_commits)"
+ assertEquals "$expected" "$(color_local_commits)"
rm_tmp
}
@@ -379,6 +382,7 @@ test_bash_colors_remote() {
printf -v expected "m 1 \x01remote-behind\x02→\x01remote-reset\x02 "
assertEquals "$expected" "$(bash_color_remote_commits)"
+ assertEquals "$expected" "$(color_remote_commits)"
echo "bar" > bar
git add .
@@ -387,12 +391,14 @@ test_bash_colors_remote() {
printf -v expected "m 1 \x01remote-diverged\x02⇄\x01remote-reset\x02 1 "
assertEquals "$expected" "$(bash_color_remote_commits)"
+ assertEquals "$expected" "$(color_remote_commits)"
git pull origin master --quiet >/dev/null
git push --quiet >/dev/null
printf -v expected "m \x01remote-ahead\x02←\x01remote-reset\x02 2 "
assertEquals "$expected" "$(bash_color_remote_commits)"
+ assertEquals "$expected" "$(color_remote_commits)"
rm_tmp
}
@@ -459,6 +465,7 @@ test_bash_colors_changes() {
printf -v expected " $staged $unstaged $untracked"
assertEquals "$expected" "$(bash_color_changes_status)"
+ assertEquals "$expected" "$(color_changes_status)"
rm_tmp
}