0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 9.1.0626: Vim9: need more tests with null objects

Problem:  Vim9: need more tests with null objects
          (after v9.1.0620)
Solution: add one more test with null_object
          (Ernie Rael)

closes: #15360

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Ernie Rael 2024-07-26 19:40:29 +02:00 committed by Christian Brabandt
parent a7295ae7f5
commit 94082b60d5
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
2 changed files with 15 additions and 0 deletions

View File

@ -686,6 +686,19 @@ def Test_object_not_set()
X() X()
END END
v9.CheckSourceFailure(lines, 'E1324: Using an Object as a String', 2) v9.CheckSourceFailure(lines, 'E1324: Using an Object as a String', 2)
# Use a null object variable that vim wants to force to number.
lines =<< trim END
vim9script
def X()
var o = null_object
var l = [ 1, o]
sort(l, 'N')
enddef
X()
END
v9.CheckSourceFailure(lines, 'E1324: Using an Object as a String', 3)
enddef enddef
" Null object assignment and comparison " Null object assignment and comparison

View File

@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
626,
/**/ /**/
625, 625,
/**/ /**/