tests: move .cache to build, rename test/_utils.vim

This commit is contained in:
Daniel Hahler
2018-04-18 09:37:17 +02:00
committed by Dave Halter
parent 1c3078e9f9
commit 7894b38c0c
5 changed files with 5 additions and 5 deletions

11
test/_utils.vim Normal file
View File

@@ -0,0 +1,11 @@
function! CurrentBufferIsModule(module_name)
return EndsWith(bufname('%'), a:module_name.'.py')
endfunction
function EndsWith(string, end)
let l:should = len(a:string) - strlen(a:end)
return l:should == stridx(a:string, a:end, should)
endfunction
" vim: et:ts=4:sw=4