diff options
Diffstat (limited to 'test/old/testdir/test_python2.vim')
-rw-r--r-- | test/old/testdir/test_python2.vim | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/old/testdir/test_python2.vim b/test/old/testdir/test_python2.vim index ab03408fc4..f0259be70d 100644 --- a/test/old/testdir/test_python2.vim +++ b/test/old/testdir/test_python2.vim @@ -171,3 +171,22 @@ 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' + . + call assert_equal('ABCD', pyxeval('s')) +endfunc + +" vim: shiftwidth=2 sts=2 expandtab |