Convert tests from custom unittest.vim to vim-themis format

- Use vimspec style (Describe/It/End) instead of basic suite style
- Setup helpers via .themisrc with ExpandWord/ExpandInBuffer globals
- Fix linear-gradient test expected value (0 100% is correct output)
- All 182 tests pass
This commit is contained in:
Yasuhiro Matsumoto
2026-03-20 23:08:50 +09:00
parent 74be26b7a0
commit bae30d2ae4
12 changed files with 887 additions and 997 deletions
+12
View File
@@ -1 +1,13 @@
let &runtimepath .= ',' . fnamemodify(expand('<sfile>'), ':h') . '/test'
call themis#helper('command').with(themis#helper('assert'))
let s:emmet = themis#helper('emmet')
call s:emmet.setup()
function! ExpandWord(query, type) abort
return s:emmet.expand_word(a:query, a:type)
endfunction
function! ExpandInBuffer(query, type, result) abort
return s:emmet.expand_in_buffer(a:query, a:type, a:result)
endfunction