comparison src/testdir/test_debugger.vim @ 28718:723c7d940cba

patch 8.2.4883: string interpolation only works in heredoc Commit: https://github.com/vim/vim/commit/2eaef106e4a7fc9dc74a7e672b5f550ec1f9786e Author: LemonBoy <thatlemon@gmail.com> Date: Fri May 6 13:14:50 2022 +0100 patch 8.2.4883: string interpolation only works in heredoc Problem: String interpolation only works in heredoc. Solution: Support interpolated strings. Use syntax for heredoc consistent with strings, similar to C#. (closes #10327)
author Bram Moolenaar <Bram@vim.org>
date Fri, 06 May 2022 14:15:03 +0200
parents 35e24d9de858
children 96ff6c230a66
comparison
equal deleted inserted replaced
28717:3953457538c9 28718:723c7d940cba
375 call RunDbgCmd(buf, ':breakadd expr g:Xtest_var') 375 call RunDbgCmd(buf, ':breakadd expr g:Xtest_var')
376 call RunDbgCmd(buf, ':source %') 376 call RunDbgCmd(buf, ':source %')
377 let expected =<< eval trim END 377 let expected =<< eval trim END
378 Oldval = "10" 378 Oldval = "10"
379 Newval = "11" 379 Newval = "11"
380 `=fnamemodify('Xtest.vim', ':p')` 380 {fnamemodify('Xtest.vim', ':p')}
381 line 1: let g:Xtest_var += 1 381 line 1: let g:Xtest_var += 1
382 END 382 END
383 call RunDbgCmd(buf, ':source %', expected) 383 call RunDbgCmd(buf, ':source %', expected)
384 call RunDbgCmd(buf, 'cont') 384 call RunDbgCmd(buf, 'cont')
385 let expected =<< eval trim END 385 let expected =<< eval trim END
386 Oldval = "11" 386 Oldval = "11"
387 Newval = "12" 387 Newval = "12"
388 `=fnamemodify('Xtest.vim', ':p')` 388 {fnamemodify('Xtest.vim', ':p')}
389 line 1: let g:Xtest_var += 1 389 line 1: let g:Xtest_var += 1
390 END 390 END
391 call RunDbgCmd(buf, ':source %', expected) 391 call RunDbgCmd(buf, ':source %', expected)
392 392
393 call StopVimInTerminal(buf) 393 call StopVimInTerminal(buf)