aboutsummaryrefslogtreecommitdiff
path: root/test/old/testdir/test_python2.vim
diff options
context:
space:
mode:
Diffstat (limited to 'test/old/testdir/test_python2.vim')
-rw-r--r--test/old/testdir/test_python2.vim24
1 files changed, 23 insertions, 1 deletions
diff --git a/test/old/testdir/test_python2.vim b/test/old/testdir/test_python2.vim
index 745b7da086..f21eb2c128 100644
--- a/test/old/testdir/test_python2.vim
+++ b/test/old/testdir/test_python2.vim
@@ -40,7 +40,7 @@ func Test_set_cursor()
endfunc
func Test_vim_function()
- throw 'skipped: Nvim does not support vim.bindeval()'
+ throw 'Skipped: Nvim does not support vim.bindeval()'
" Check creating vim.Function object
py import vim
@@ -171,3 +171,25 @@ func Test_Catch_Exception_Message()
call assert_match('^Vim(.*):.*RuntimeError: TEST$', v:exception )
endtry
endfunc
+
+" Test for various heredoc syntax
+func Test_python_heredoc()
+ python << END
+s='A'
+END
+ python <<
+s+='B'
+.
+ python << trim END
+ s+='C'
+ END
+ python << trim
+ s+='D'
+ .
+ python << trim eof
+ s+='E'
+ eof
+ call assert_equal('ABCDE', pyxeval('s'))
+endfunc
+
+" vim: shiftwidth=2 sts=2 expandtab