changed directories and addet fzf to zsh
This commit is contained in:
parent
0acd581d40
commit
cb928bb0b4
428 changed files with 20659 additions and 15 deletions
26
.zsh/plugins/autopairs/tests/get-pair.zunit
Normal file
26
.zsh/plugins/autopairs/tests/get-pair.zunit
Normal file
|
@ -0,0 +1,26 @@
|
|||
#!/usr/bin/env zunit
|
||||
@test 'existing pair' {
|
||||
assert $(_ap-get-pair "{") same_as "}"
|
||||
}
|
||||
|
||||
@test 'existing right-pair' {
|
||||
assert $(_ap-get-pair "" "}") same_as "{"
|
||||
}
|
||||
|
||||
@test 'non-existent pair' {
|
||||
assert $(_ap-get-pair "<") same_as ""
|
||||
}
|
||||
|
||||
@test 'non-existent right-pair' {
|
||||
assert $(_ap-get-pair "" ">") same_as ""
|
||||
}
|
||||
|
||||
@test 'all default pairs' {
|
||||
assert '"' in ${(@k)AUTOPAIR_PAIRS}
|
||||
assert "'" in ${(@k)AUTOPAIR_PAIRS}
|
||||
assert '`' in ${(@k)AUTOPAIR_PAIRS}
|
||||
assert '{' in ${(@k)AUTOPAIR_PAIRS}
|
||||
assert '[' in ${(@k)AUTOPAIR_PAIRS}
|
||||
assert '(' in ${(@k)AUTOPAIR_PAIRS}
|
||||
assert ' ' in ${(@k)AUTOPAIR_PAIRS}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue