Add first tests
This commit is contained in:
parent
82496e92aa
commit
4b38f10f3f
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -9,3 +9,5 @@
|
||||||
!plugin/startify.vim
|
!plugin/startify.vim
|
||||||
!startify.png
|
!startify.png
|
||||||
!syntax/startify.vim
|
!syntax/startify.vim
|
||||||
|
!test/run
|
||||||
|
!test/tests.vader
|
||||||
|
|
10
test/run
Executable file
10
test/run
Executable file
|
@ -0,0 +1,10 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
vim --nofork -XNu <(cat << EOF
|
||||||
|
filetype off
|
||||||
|
set runtimepath+=~/.vim/bundle/vader.vim
|
||||||
|
set runtimepath+=..
|
||||||
|
filetype plugin on
|
||||||
|
syntax enable
|
||||||
|
set hidden
|
||||||
|
EOF) +Vader*
|
23
test/tests.vader
Normal file
23
test/tests.vader
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
Before (Check :Startify):
|
||||||
|
Startify
|
||||||
|
|
||||||
|
Execute (Check options):
|
||||||
|
AssertEqual 'startify', &filetype
|
||||||
|
AssertEqual 'wipe', &bufhidden
|
||||||
|
AssertEqual 'nofile', &buftype
|
||||||
|
AssertEqual 0, &buflisted
|
||||||
|
AssertEqual 0, &cursorcolumn
|
||||||
|
AssertEqual 0, &cursorline
|
||||||
|
AssertEqual 0, &list
|
||||||
|
AssertEqual 0, &number
|
||||||
|
AssertEqual 0, &swapfile
|
||||||
|
|
||||||
|
Do (open new buffer in insert mode with 'i'):
|
||||||
|
ifoo
|
||||||
|
Expect (only "foo"):
|
||||||
|
foo
|
||||||
|
|
||||||
|
Do (open new buffer in normal mode with 'e'):
|
||||||
|
eibar
|
||||||
|
Expect (only "bar"):
|
||||||
|
bar
|
Loading…
Reference in a new issue