diff --git a/test/tc_date.vim b/test/tc_date.vim index 02f817c..161ef59 100644 --- a/test/tc_date.vim +++ b/test/tc_date.vim @@ -24,7 +24,7 @@ let s:DATE_INSERTED_AFTER_PRIORITY_VISUAL = [ function! s:tc.test_insert_date_normal_mode() call self.data.goto('lorem_ipsum') - call self.data.execute('call todo#txt#prepend_date()', 'lorem_ipsum') + call todo#txt#prepend_date() call self.assert_equal(s:DATE_INSERTED, self.data.get('lorem_ipsum')) endfunction @@ -40,13 +40,11 @@ function! s:tc.test_insert_date_visual_mode() endfunction function! s:tc.test_insert_date_after_priority_normal_mode() - call self.data.goto('date_after_priority') call self.data.execute('call todo#txt#prepend_date()', 'date_after_priority') call self.assert_equal(s:DATE_INSERTED_AFTER_PRIORITY, self.data.get('date_after_priority')) endfunction function! s:tc.test_insert_date_after_priority_visual_mode() - call self.data.goto('date_after_priority_visual') call self.data.visual_execute('call todo#txt#prepend_date()', 'date_after_priority_visual') call self.assert_equal(s:DATE_INSERTED_AFTER_PRIORITY_VISUAL, self.data.get('date_after_priority_visual')) endfunction