mirror of
https://github.com/freitass/todo.txt-vim.git
synced 2025-11-16 13:53:47 -05:00
21 lines
613 B
VimL
21 lines
613 B
VimL
let s:here = expand('<sfile>:p:h')
|
|
let s:tc = unittest#testcase#new('Sort Context',
|
|
\ { 'data': s:here . '/tc_sort_context.todo.txt' })
|
|
|
|
let s:LEADER = mapleader
|
|
|
|
let s:SORTED_TASKS = [
|
|
\ '(B) Review key questions. @benchmarking',
|
|
\ '(B) Linear regression Rnet=Qh@Qle. @cons_emp_model',
|
|
\ '(A) simple model first @cons_emp_model',
|
|
\ ]
|
|
|
|
function! s:tc.test_sort_by_context()
|
|
execute 'normal ' . s:LEADER . 's@'
|
|
execute 'normal ggO# lorem_ipsum'
|
|
execute 'normal Go# end_lorem_ipsum'
|
|
call self.assert_equal(s:SORTED_TASKS, self.data.get('lorem_ipsum'))
|
|
endfunction
|
|
|
|
unlet s:tc
|