aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro@gmail.com>2014-05-02 13:15:01 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-05-02 16:01:31 -0300
commit8a729897f433f2e11450f48d57dc38ad7ef0c73a (patch)
tree9b60785b4154878e1f54df0b1220778635fdaad1
parentabecd0f3942d3fd172393f6ad16b9877aab6755a (diff)
downloadrneovim-8a729897f433f2e11450f48d57dc38ad7ef0c73a.tar.gz
rneovim-8a729897f433f2e11450f48d57dc38ad7ef0c73a.tar.bz2
rneovim-8a729897f433f2e11450f48d57dc38ad7ef0c73a.zip
Improve test_eval.in
The old version required to change the range given to :w for each new test. Now a new buffer is used instead.
-rw-r--r--src/testdir/test_eval.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/testdir/test_eval.in b/src/testdir/test_eval.in
index edf4fe437b..c34f5cb50e 100644
--- a/src/testdir/test_eval.in
+++ b/src/testdir/test_eval.in
@@ -1,5 +1,8 @@
STARTTEST
+:e test.out
+:%d
+
:" function name not starting with a capital
:try
: func! g:test()
@@ -46,8 +49,9 @@ STARTTEST
: $put =v:exception
:endtry
-:$-10,$w! test.out
-:q!
+:1d
+:w
+:qa!
ENDTEST