diff options
author | Michael Allen <michael@michaelallen.io> | 2015-09-17 14:01:38 +0100 |
---|---|---|
committer | Michael Allen <michael@michaelallen.io> | 2015-09-17 14:01:38 +0100 |
commit | 06e6a85ebd0d1090128079d0c7e31db43b591d27 (patch) | |
tree | bd7c23cad4d9283d5754ffc85b24b252e77a004f /test-colors.sh | |
parent | 49d6fcc1190066b38d1684f1cfd1d4fea3190d78 (diff) | |
download | git-sonar-06e6a85ebd0d1090128079d0c7e31db43b591d27.tar.gz git-sonar-06e6a85ebd0d1090128079d0c7e31db43b591d27.zip |
Switch remote commits to use suffixes
Diffstat (limited to 'test-colors.sh')
-rwxr-xr-x | test-colors.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test-colors.sh b/test-colors.sh index e28fb68..69efc49 100755 --- a/test-colors.sh +++ b/test-colors.sh @@ -380,7 +380,7 @@ test_bash_colors_remote() { git checkout -b mybranch --quiet git push --quiet -u origin mybranch >/dev/null - printf -v expected "m 1 \x01remote-behind\x02→\x01remote-reset\x02 " + printf -v expected "m 1 \x01remote-behind\x02→\x01remote-reset\x02" assertEquals "$expected" "$(bash_color_remote_commits)" assertEquals "$expected" "$(color_remote_commits)" @@ -389,14 +389,14 @@ test_bash_colors_remote() { git commit -m "new commit" --quiet git push --quiet >/dev/null - printf -v expected "m 1 \x01remote-diverged\x02⇄\x01remote-reset\x02 1 " + 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 " + printf -v expected "m \x01remote-ahead\x02←\x01remote-reset\x02 2" assertEquals "$expected" "$(bash_color_remote_commits)" assertEquals "$expected" "$(color_remote_commits)" @@ -430,19 +430,19 @@ test_zsh_colors_remote() { git checkout -b mybranch --quiet git push --quiet -u origin mybranch >/dev/null - assertEquals "m 1 %{remote-behind%}→%{remote-reset%} " "$(zsh_color_remote_commits)" + assertEquals "m 1 %{remote-behind%}→%{remote-reset%}" "$(zsh_color_remote_commits)" echo "bar" > bar git add . git commit -m "new commit" --quiet git push --quiet >/dev/null - assertEquals "m 1 %{remote-diverged%}⇄%{remote-reset%} 1 " "$(zsh_color_remote_commits)" + assertEquals "m 1 %{remote-diverged%}⇄%{remote-reset%} 1" "$(zsh_color_remote_commits)" git pull origin master --quiet >/dev/null git push --quiet >/dev/null - assertEquals "m %{remote-ahead%}←%{remote-reset%} 2 " "$(zsh_color_remote_commits)" + assertEquals "m %{remote-ahead%}←%{remote-reset%} 2" "$(zsh_color_remote_commits)" rm_tmp } |