Autocommit of file /home/julien/.dotfiles/vim/.vim/bundle/vimtodo/test/test001.vim...
authorJulien Valroff <julien@kirya.net>
Tue, 1 Nov 2011 08:08:07 +0000 (09:08 +0100)
committerJulien Valroff <julien@kirya.net>
Tue, 1 Nov 2011 08:08:07 +0000 (09:08 +0100)
.vim/bundle/vimtodo/test/test001.vim [new file with mode: 0644]

diff --git a/.vim/bundle/vimtodo/test/test001.vim b/.vim/bundle/vimtodo/test/test001.vim
new file mode 100644 (file)
index 0000000..f1a9eb1
--- /dev/null
@@ -0,0 +1,19 @@
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+" Test TODO entry creation macros
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+source setup_tests.inc
+call vimtap#Plan(2)
+
+" Get Today's date for matching with the auto-generated dates
+let today=strftime("%Y-%m-%d")
+
+call vimtap#Diag('TODO entry creation')
+normal icn Test Entry
+call vimtap#Is(getline('.'), 'TODO '.today.' Test Entry',
+            \"TODO entry generated with cn abbreviation")
+
+normal \cn
+call vimtap#Is(getline('.'), 'TODO '.today.' ',
+            \"TODO entry generated with \cn macro")
+
+call vimtest#Quit()