Patch 8.2.2167
Problem: Vim9: assign test fails. (Elimar Riesebieter)
Solution: Adjust the test for dict assignment.
Files: src/testdir/test_vim9_assign.vim
*** ../vim-8.2.2166/src/testdir/test_vim9_assign.vim 2020-12-18
17:23:11.014359533 +0100
--- src/testdir/test_vim9_assign.vim 2020-12-19 21:57:06.160140545 +0100
***************
*** 561,570 ****
assert_equal(dict3, {key: 'yet another'})
var lines =<< trim END
var dd = {one: 1}
dd.one) = 2
END
! CheckDefFailure(lines, 'E15:', 2)
# empty key can be used
var dd = {}
--- 561,584 ----
assert_equal(dict3, {key: 'yet another'})
var lines =<< trim END
+ vim9script
+ var dd = {}
+ dd.two = 2
+ assert_equal({two: 2}, dd)
+ END
+ CheckScriptSuccess(lines)
+
+ lines =<< trim END
var dd = {one: 1}
dd.one) = 2
END
! CheckDefFailure(lines, 'E488:', 2)
!
! lines =<< trim END
! var dd = {one: 1}
! var dd.one = 2
! END
! CheckDefAndScriptFailure(lines, 'E1017:', 2)
# empty key can be used
var dd = {}
*** ../vim-8.2.2166/src/version.c 2020-12-20 13:07:44.817149460 +0100
--- src/version.c 2020-12-20 14:49:26.019556031 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2167,
/**/
--
"You're fired." (1980)
"You're laid off." (1985)
"You're downsized." (1990)
"You're rightsized." (1992)
(Scott Adams - The Dilbert principle)
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202012201350.0BKDo5Cl1894233%40masaka.moolenaar.net.