comparison src/testdir/test_const.vim @ 17172:6990c1160ea5 v8.1.1585

patch 8.1.1585: :let-heredoc does not trim enough commit https://github.com/vim/vim/commit/e7eb92708ec2092a2fc11e78703b5dcf83844412 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 24 00:58:07 2019 +0200 patch 8.1.1585: :let-heredoc does not trim enough Problem: :let-heredoc does not trim enough. Solution: Trim indent from the contents based on the indent of the first line. Use let-heredoc in more tests.
author Bram Moolenaar <Bram@vim.org>
date Mon, 24 Jun 2019 01:00:05 +0200
parents cc5d4b4bae83
children 9606c0adc148
comparison
equal deleted inserted replaced
17171:1b0f624dcd8d 17172:6990c1160ea5
16 endif 16 endif
17 const b = v:true 17 const b = v:true
18 const n = v:null 18 const n = v:null
19 const bl = 0zC0FFEE 19 const bl = 0zC0FFEE
20 const here =<< trim EOS 20 const here =<< trim EOS
21 hello 21 hello
22 EOS 22 EOS
23 23
24 call assert_true(exists('i')) 24 call assert_true(exists('i'))
25 call assert_true(exists('f')) 25 call assert_true(exists('f'))
26 call assert_true(exists('s')) 26 call assert_true(exists('s'))
82 endif 82 endif
83 const l:b = v:true 83 const l:b = v:true
84 const l:n = v:null 84 const l:n = v:null
85 const l:bl = 0zC0FFEE 85 const l:bl = 0zC0FFEE
86 const l:here =<< trim EOS 86 const l:here =<< trim EOS
87 hello 87 hello
88 EOS 88 EOS
89 89
90 call assert_fails('let l:i = 1', 'E741:') 90 call assert_fails('let l:i = 1', 'E741:')
91 call assert_fails('let l:f = 1.1', 'E741:') 91 call assert_fails('let l:f = 1.1', 'E741:')
92 call assert_fails('let l:s = "vim"', 'E741:') 92 call assert_fails('let l:s = "vim"', 'E741:')