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

patch 8.2.0299: Vim9: ISN_STORE with argument not tested

Problem:    Vim9: ISN_STORE with argument not tested.  Some cases in tv2bool()
            not tested.
Solution:   Add tests.  Add test_unknown() and test_void().
This commit is contained in:
Bram Moolenaar
2020-02-22 19:07:28 +01:00
parent 0c6ceaf903
commit 8ed04587d3
8 changed files with 61 additions and 0 deletions

View File

@@ -765,6 +765,23 @@ def Test_expr7_not()
assert_equal(false, ![2])
assert_equal(true, !!'asdf')
assert_equal(true, !![2])
assert_equal(true, !test_null_partial())
assert_equal(false, !{-> 'yes'})
assert_equal(true, !test_null_dict())
assert_equal(true, !{})
assert_equal(false, !{'yes': 'no'})
assert_equal(true, !test_null_job())
assert_equal(true, !test_null_channel())
assert_equal(true, !test_null_blob())
assert_equal(true, !0z)
assert_equal(false, !0z01)
assert_equal(true, !test_void())
assert_equal(true, !test_unknown())
enddef
func Test_expr7_fails()