summaryrefslogtreecommitdiff
path: root/src/testdir/test_vim9_expr.vim
diff options
context:
space:
mode:
Diffstat (limited to 'src/testdir/test_vim9_expr.vim')
-rw-r--r--src/testdir/test_vim9_expr.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_expr.vim b/src/testdir/test_vim9_expr.vim
index 4a3803a8f..72e85de3f 100644
--- a/src/testdir/test_vim9_expr.vim
+++ b/src/testdir/test_vim9_expr.vim
@@ -801,6 +801,13 @@ def Test_expr4_compare_null()
assert_false(null_string != null)
assert_false(v:null != test_null_string())
assert_false(null != null_string)
+
+ assert_true(null_string is test_null_string())
+ assert_false(null_string is '')
+ assert_false('' is null_string)
+ assert_false(null_string isnot test_null_string())
+ assert_true(null_string isnot '')
+ assert_true('' isnot null_string)
END
v9.CheckDefAndScriptSuccess(lines)
unlet g:null_dict