diff options
| author | Michael Allen <michael@michaelallen.io> | 2015-08-30 19:54:40 +0100 | 
|---|---|---|
| committer | Michael Allen <michael@michaelallen.io> | 2015-08-30 19:54:40 +0100 | 
| commit | 8f62ad94da6058ac8f66a37caac518b643ccafe3 (patch) | |
| tree | 45241e258f12ca3ce9fb64bf42f5ccf22a60a0de | |
| parent | e388db84ee99641a0260767ccdd4c889b7ca4f7d (diff) | |
| download | git-sonar-8f62ad94da6058ac8f66a37caac518b643ccafe3.tar.gz git-sonar-8f62ad94da6058ac8f66a37caac518b643ccafe3.zip  | |
Test the zsh color changes configuration
| -rwxr-xr-x | test-colors.sh | 18 | 
1 files changed, 18 insertions, 0 deletions
diff --git a/test-colors.sh b/test-colors.sh index 6b8a797..73aac53 100755 --- a/test-colors.sh +++ b/test-colors.sh @@ -173,4 +173,22 @@ test_zsh_colors_remote() {    rm_tmp  } +test_zsh_colors_changes() { +  set_zsh_env_vars +  prepare_zsh_colors + +  cd_to_tmp +  git init --quiet + +  touch foo +  touch bar +  git add bar +  echo "bar" > bar +  untracked="1%{changes-untracked%}A%{change-reset%}" +  unstaged="1%{changes-unstaged%}M%{change-reset%}" +  staged="1%{changes-staged%}A%{change-reset%}" + +  assertEquals " $staged $unstaged $untracked" "$(zsh_color_changes_status)" +} +  . ./shunit/shunit2  | 
