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
25
.zsh/plugins/autopairs/tests/can-skip-p.zunit
Normal file
25
.zsh/plugins/autopairs/tests/can-skip-p.zunit
Normal file
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/env zunit
|
||||
|
||||
@test 'fail skip-check on blank line' {
|
||||
LBUFFER='' RBUFFER='' assert_false _ap-can-skip-p '{' '}'
|
||||
}
|
||||
|
||||
@test 'fail skip-check on wrong pair' {
|
||||
LBUFFER='"' RBUFFER='"' assert_false _ap-can-skip-p '{' '}'
|
||||
}
|
||||
|
||||
@test 'skip if next to homogeneous counter-pair' {
|
||||
LBUFFER='"' RBUFFER='"' assert_true _ap-can-skip-p '"' '"'
|
||||
}
|
||||
|
||||
@test 'skip if next to heterogeneous counter-pair' {
|
||||
LBUFFER='{' RBUFFER='}' assert_true _ap-can-skip-p '{' '}'
|
||||
}
|
||||
|
||||
@test 'do not skip if next to unbalanced, homogeneous counter-pair' {
|
||||
LBUFFER='' RBUFFER='"' assert_false _ap-can-skip-p '"' '"'
|
||||
}
|
||||
|
||||
@test 'do not skip if next to unbalanced, heterogeneous counter-pair' {
|
||||
LBUFFER='' RBUFFER='}' assert_false _ap-can-skip-p '{' '}'
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue