mirror of
https://github.com/Raimondi/delimitMate.git
synced 2025-12-06 12:44:27 +08:00
Reorder some tests and add modelines everywhere
This commit is contained in:
@@ -1,26 +1,46 @@
|
||||
" function! DMTest_single(setup, typed, expected[, skip_expr[, todo_expr]])
|
||||
" call DMTest_single(setup, typed, expected[, skip_expr[, todo_expr]])
|
||||
" - Runs a single test.
|
||||
" - Add 1 to vimtap#Plan().
|
||||
"
|
||||
" function! DMTest_pairs(setup, typed, expected, [skip_expr[, todo_expr]])
|
||||
" call DMTest_pairs(setup, typed, expected, [skip_expr[, todo_expr]])
|
||||
" - Runs one test for every pair.
|
||||
" - Add 7 to vimtap#Plan().
|
||||
"
|
||||
" function! DMTest_quotes(setup, typed, expected, [skip_expr[, todo_expr]])
|
||||
" call DMTest_quotes(setup, typed, expected, [skip_expr[, todo_expr]])
|
||||
" - Runs one test for every quote.
|
||||
" - Add 5 to vimtap#Plan().
|
||||
|
||||
call vimtest#StartTap()
|
||||
call vimtap#Plan(12)
|
||||
|
||||
call vimtap#Plan(60)
|
||||
|
||||
|
||||
let g:delimitMate_expand_space = 1
|
||||
|
||||
let g:delimitMate_autoclose = 1
|
||||
call DMTest_pairs('', "i(\<Space>x", "( x )")
|
||||
|
||||
call DMTest_pairs('( )', "la\<BS>x", "(x)")
|
||||
|
||||
call DMTest_pairs('', "iabc x", "abc x")
|
||||
|
||||
call DMTest_quotes('', "i' x", "' x'")
|
||||
|
||||
let g:delimitMate_expand_inside_quotes = 1
|
||||
call DMTest_quotes('', "i' x", "' x '")
|
||||
|
||||
call DMTest_quotes('', "i' \<BS>x", "'x'")
|
||||
|
||||
call DMTest_quotes('abc\', "A'' x", "abc\\'' x '")
|
||||
|
||||
" Issue #95
|
||||
let b:delimitMate_jump_expansion = 1
|
||||
call DMTest_pairs('', "i( test)x", '( test )x')
|
||||
|
||||
let delimitMate_expand_inside_quotes = 1
|
||||
let g:delimitMate_autoclose = 0
|
||||
call DMTest_pairs('', "i()\<Space>\<BS>x", "(x)")
|
||||
|
||||
call DMTest_quotes('', "i' x", "' x '")
|
||||
call DMTest_quotes('', "i'' \<BS>x", "'x'")
|
||||
|
||||
call vimtest#Quit()
|
||||
" vim: sw=2 et
|
||||
|
||||
Reference in New Issue
Block a user