Patch 8.2.2808
Problem: Vim9: increment and decrement not sufficiently tested.
Solution: Add assertions.
Files: src/testdir/test_vim9_assign.vim
*** ../vim-8.2.2807/src/testdir/test_vim9_assign.vim 2021-04-24
19:08:20.492010301 +0200
--- src/testdir/test_vim9_assign.vim 2021-04-24 20:42:44.619683703 +0200
***************
*** 1841,1854 ****
var lines =<< trim END
var nr = 7
++nr
! echo nr
--nr
! echo nr
var ll = [1, 2]
--ll[0]
++ll[1]
! echo ll
END
CheckDefAndScriptSuccess(lines)
enddef
--- 1841,1860 ----
var lines =<< trim END
var nr = 7
++nr
! assert_equal(8, nr)
--nr
! assert_equal(7, nr)
var ll = [1, 2]
--ll[0]
++ll[1]
! assert_equal([0, 3], ll)
!
! g:count = 1
! ++g:count
! --g:count
! assert_equal(1, g:count)
! unlet g:count
END
CheckDefAndScriptSuccess(lines)
enddef
*** ../vim-8.2.2807/src/version.c 2021-04-24 20:36:59.848978076 +0200
--- src/version.c 2021-04-24 20:43:35.511496678 +0200
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2808,
/**/
--
An error has occurred. Hit any user to continue.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ 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/202104241844.13OIiu7d1999307%40masaka.moolenaar.net.