Tests: add session.vader

This commit is contained in:
Marco Hinz 2016-02-02 13:35:34 +01:00
parent 9e296c31d9
commit 1c1c3abb80
7 changed files with 27 additions and 3 deletions

View file

@ -0,0 +1,18 @@
Execute (Session: :SSave foo):
edit include/testfile.txt
SSave foo
SClose
Do:
e
Expect:
Execute (Session: :SLoad foo):
silent SLoad foo
Expect:
This is just a simple test file.
Foo, bar, quux.
Execute (Session: :SDelete foo):
Assert 1 == filereadable(g:startify_session_dir.'/foo')
SDelete foo
Assert 0 == filereadable(g:startify_session_dir.'/foo')