summaryrefslogtreecommitdiffstats
path: root/test-format-config.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-format-config.sh
parent06e6a85ebd0d1090128079d0c7e31db43b591d27 (diff)
downloadgit-sonar-1537438e5798502cad17ba10cf19016e400f7c42.tar.gz
git-sonar-1537438e5798502cad17ba10cf19016e400f7c42.zip
Switch changes status to use prefixes
Diffstat (limited to 'test-format-config.sh')
-rwxr-xr-xtest-format-config.sh18
1 files changed, 9 insertions, 9 deletions
diff --git a/test-format-config.sh b/test-format-config.sh
index 7999560..ea76405 100755
--- a/test-format-config.sh
+++ b/test-format-config.sh
@@ -75,28 +75,28 @@ test_all_options_set_config() {
unset_colours
prompt="$(render_prompt)"
- assertEquals "$prompt" "m 1 →foo1↑ 1A"
+ assertEquals "$prompt" "m 1 →foo1↑1A"
export GIT_RADAR_FORMAT="%{remote}%{branch}%{changes}"
prepare_zsh_colors
unset_colours
prompt="$(render_prompt)"
- assertEquals "$prompt" "m 1 →foo 1A"
+ assertEquals "$prompt" "m 1 →foo1A"
export GIT_RADAR_FORMAT="%{branch}%{local}%{changes}"
prepare_zsh_colors
unset_colours
prompt="$(render_prompt)"
- assertEquals "$prompt" "foo1↑ 1A"
+ assertEquals "$prompt" "foo1↑1A"
export GIT_RADAR_FORMAT="%{branch}%{changes}"
prepare_zsh_colors
unset_colours
prompt="$(render_prompt)"
- assertEquals "$prompt" "foo 1A"
+ assertEquals "$prompt" "foo1A"
export GIT_RADAR_FORMAT="%{branch}"
prepare_zsh_colors
@@ -116,21 +116,21 @@ test_reorder_parts() {
unset_colours
prompt="$(render_prompt)"
- assertEquals "foo1↑ 1Am 1 →" "$prompt"
+ assertEquals "foo1↑1Am 1 →" "$prompt"
export GIT_RADAR_FORMAT="%{local}%{changes}%{remote}%{branch}"
prepare_zsh_colors
unset_colours
prompt="$(render_prompt)"
- assertEquals "1↑ 1Am 1 →foo" "$prompt"
+ assertEquals "1↑1Am 1 →foo" "$prompt"
export GIT_RADAR_FORMAT="%{changes}%{remote}%{branch}%{local}"
prepare_zsh_colors
unset_colours
prompt="$(render_prompt)"
- assertEquals " 1Am 1 →foo1↑" "$prompt"
+ assertEquals "1Am 1 →foo1↑" "$prompt"
rm_tmp
}
@@ -143,14 +143,14 @@ test_prefix_and_suffix_changes() {
unset_colours
prompt="$(render_prompt)"
- assertEquals " 1A" "$prompt"
+ assertEquals "1A" "$prompt"
export GIT_RADAR_FORMAT="%{[:changes:]}"
prepare_zsh_colors
unset_colours
prompt="$(render_prompt)"
- assertEquals "[ 1A]" "$prompt"
+ assertEquals "[1A]" "$prompt"
rm_tmp
}