summaryrefslogtreecommitdiffstats
path: root/test-colors.sh
diff options
context:
space:
mode:
authorMichael Allen <michael@michaelallen.io>2015-09-17 14:08:55 +0100
committerMichael Allen <michael@michaelallen.io>2015-09-17 14:08:55 +0100
commit1537438e5798502cad17ba10cf19016e400f7c42 (patch)
tree8811535f3d59421152407a37f78069f04d6ce8df /test-colors.sh
parent06e6a85ebd0d1090128079d0c7e31db43b591d27 (diff)
downloadgit-sonar-1537438e5798502cad17ba10cf19016e400f7c42.tar.gz
git-sonar-1537438e5798502cad17ba10cf19016e400f7c42.zip
Switch changes status to use prefixes
Diffstat (limited to 'test-colors.sh')
-rwxr-xr-xtest-colors.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test-colors.sh b/test-colors.sh
index 69efc49..8cc072b 100755
--- a/test-colors.sh
+++ b/test-colors.sh
@@ -463,7 +463,7 @@ test_bash_colors_changes() {
unstaged="1\x01changes-unstaged\x02M\x01change-reset\x02"
staged="1\x01changes-staged\x02A\x01change-reset\x02"
- printf -v expected " $staged $unstaged $untracked"
+ printf -v expected "$staged $unstaged $untracked"
assertEquals "$expected" "$(bash_color_changes_status)"
assertEquals "$expected" "$(color_changes_status)"
rm_tmp
@@ -485,7 +485,7 @@ test_zsh_colors_changes() {
unstaged="1%{changes-unstaged%}M%{change-reset%}"
staged="1%{changes-staged%}A%{change-reset%}"
- assertEquals " $staged $unstaged $untracked" "$(zsh_color_changes_status)"
+ assertEquals "$staged $unstaged $untracked" "$(zsh_color_changes_status)"
rm_tmp
}