Patch 9.0.1122

3 views
Skip to first unread message

Bram Moolenaar

unread,
Dec 31, 2022, 2:03:11 PM12/31/22
to vim...@googlegroups.com

Patch 9.0.1122
Problem: Class member access is not fully tested yet.
Solution: Add more tests.
Files: src/testdir/test_vim9_class.vim


*** ../vim-9.0.1121/src/testdir/test_vim9_class.vim 2022-12-25 19:31:29.517203739 +0000
--- src/testdir/test_vim9_class.vim 2022-12-31 18:45:34.749841202 +0000
***************
*** 374,379 ****
--- 374,381 ----
this.lnum = 1
this.col = 1
static counter = 0
+ static _secret = 7
+ public static anybody = 42

def AddToCounter(nr: number)
counter += nr
***************
*** 386,392 ****
assert_fails('echo TextPos.noSuchMember', 'E1338:')

assert_fails('TextPos.noSuchMember = 2', 'E1337:')
! assert_fails('TextPos.counter += 5', 'E1335')
END
v9.CheckScriptSuccess(lines)
enddef
--- 388,404 ----
assert_fails('echo TextPos.noSuchMember', 'E1338:')

assert_fails('TextPos.noSuchMember = 2', 'E1337:')
! assert_fails('TextPos.counter = 5', 'E1335:')
! assert_fails('TextPos.counter += 5', 'E1335:')
!
! assert_fails('echo TextPos._secret', 'E1333:')
! assert_fails('TextPos._secret = 8', 'E1333:')
!
! assert_equal(42, TextPos.anybody)
! TextPos.anybody = 12
! assert_equal(12, TextPos.anybody)
! TextPos.anybody += 5
! assert_equal(17, TextPos.anybody)
END
v9.CheckScriptSuccess(lines)
enddef
*** ../vim-9.0.1121/src/version.c 2022-12-31 15:12:58.050637307 +0000
--- src/version.c 2022-12-31 18:41:23.373936360 +0000
***************
*** 697,698 ****
--- 697,700 ----
{ /* Add new patch number below this line */
+ /**/
+ 1122,
/**/

--
It is illegal to take more than three sips of beer at a time while standing.
[real standing law in Texas, United States of America]

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages