diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2024-04-15 07:11:39 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-15 07:11:39 +0800 |
| commit | 43f8d7e3ef2db733f01f2d4c03214cd90c5a09be (patch) | |
| tree | 002e8a305a2217ce1b6f7f7ab7fef548fcd6b8b7 /test/old/testdir/test_expr.vim | |
| parent | 7180ef690180cf92d1d49811820c46dd60e4d1c6 (diff) | |
| download | rneovim-43f8d7e3ef2db733f01f2d4c03214cd90c5a09be.tar.gz rneovim-43f8d7e3ef2db733f01f2d4c03214cd90c5a09be.tar.bz2 rneovim-43f8d7e3ef2db733f01f2d4c03214cd90c5a09be.zip | |
vim-patch:9.1.0329: String interpolation fails for Dict type (#28335)
Problem: String interpolation fails for Dict type
Solution: Support Dict data type properly, also support :put =Dict
(without having to convert it to string() first)
(Yegappan Lakshmanan)
fixes: vim/vim#14529
closes: vim/vim#14541
https://github.com/vim/vim/commit/f01493c55062c01b1cdf9b1e946577f4d1bdddf3
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'test/old/testdir/test_expr.vim')
| -rw-r--r-- | test/old/testdir/test_expr.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/old/testdir/test_expr.vim b/test/old/testdir/test_expr.vim index d316e63818..82377aaf19 100644 --- a/test/old/testdir/test_expr.vim +++ b/test/old/testdir/test_expr.vim @@ -904,6 +904,10 @@ func Test_string_interp() endif call assert_equal(0, tmp) + #" Dict interpolation + VAR d = {'a': 10, 'b': [1, 2]} + call assert_equal("{'a': 10, 'b': [1, 2]}", $'{d}') + #" Stray closing brace. call assert_fails('echo $"moo}"', 'E1278:') #" Undefined variable in expansion. |