Pull duplicated test logic from strategies into single test file

This commit is contained in:
Eric Freese
2016-04-22 14:14:29 -06:00
parent c477db2696
commit c5f57da2b8
4 changed files with 86 additions and 117 deletions

View File

@@ -54,7 +54,7 @@ assertSuggestion() {
local expected_suggestion="$2"
assertEquals \
"Did not get correct suggestion for prefix:<$prefix>" \
"Did not get correct suggestion for prefix:<$prefix> using strategy <$ZSH_AUTOSUGGEST_STRATEGY>" \
"$expected_suggestion" \
"$(_zsh_autosuggest_suggestion "$prefix")"
}