From b1ed8608d1cc38dc6f47f8ba46ffc67c27807605 Mon Sep 17 00:00:00 2001 From: Leandro Freitas Date: Tue, 5 May 2015 09:52:28 -0300 Subject: [PATCH] Fixes 'date' test --- test/tc_date.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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