Refactor to remove prev cmd function and simplify escaping

This commit is contained in:
Eric Freese
2016-04-25 14:19:26 -06:00
parent c5f57da2b8
commit 011d8bdfd1
6 changed files with 20 additions and 48 deletions

View File

@@ -64,6 +64,16 @@ assertSquareBracketsSuggestion() {
'echo "$history[123]"'
}
assertHashSuggestion() {
set_history <<-'EOF'
echo "#yolo"
EOF
assertSuggestion \
'echo "#' \
'echo "#yolo"'
}
testSpecialCharsForAllStrategies() {
local strategies
strategies=(