summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_eval.in
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-04-02 19:55:10 +0200
committerBram Moolenaar <Bram@vim.org>2014-04-02 19:55:10 +0200
commitb7cb42bc3878fcb62ed407f47f0a2cc960aa7c1e (patch)
tree5106cbff25dbcf19891a33f658aac198f1e85137 /src/testdir/test_eval.in
parent41571769c9a236fd07b333a5eb98c461636b466c (diff)
updated for version 7.4.242v7.4.242
Problem: getreg() does not distinguish between a NL used for a line break and a NL used for a NUL character. Solution: Add another argument to return a list. (ZyX)
Diffstat (limited to 'src/testdir/test_eval.in')
-rw-r--r--src/testdir/test_eval.in21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/testdir/test_eval.in b/src/testdir/test_eval.in
new file mode 100644
index 0000000000..115d50dd9d
--- /dev/null
+++ b/src/testdir/test_eval.in
@@ -0,0 +1,21 @@
+Test for various eval features.
+
+STARTTEST
+:so small.vim
+:"
+:" test getreg()
+/^one
+"ay3j:$put =string(getreg('a'))
+:$put =string(getreg('a', 1, 1))
+:"
+:/^result/,$w! test.out
+:qa!
+ENDTEST
+
+one
+two
+three
+four
+five
+
+result