comparison src/testdir/test_vim9_expr.vim @ 19483:0d3dcb4476ba v8.2.0299

patch 8.2.0299: Vim9: ISN_STORE with argument not tested Commit: https://github.com/vim/vim/commit/8ed04587d3cd53e29be20fde9c36e619ea7da4dc Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 22 19:07:28 2020 +0100 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().
author Bram Moolenaar <Bram@vim.org>
date Sat, 22 Feb 2020 19:15:04 +0100
parents 55656a51d2af
children a09636ecee3c
comparison
equal deleted inserted replaced
19482:5bb16fb9c9d1 19483:0d3dcb4476ba
763 assert_equal(true, ![]) 763 assert_equal(true, ![])
764 assert_equal(false, !'asdf') 764 assert_equal(false, !'asdf')
765 assert_equal(false, ![2]) 765 assert_equal(false, ![2])
766 assert_equal(true, !!'asdf') 766 assert_equal(true, !!'asdf')
767 assert_equal(true, !![2]) 767 assert_equal(true, !![2])
768
769 assert_equal(true, !test_null_partial())
770 assert_equal(false, !{-> 'yes'})
771
772 assert_equal(true, !test_null_dict())
773 assert_equal(true, !{})
774 assert_equal(false, !{'yes': 'no'})
775
776 assert_equal(true, !test_null_job())
777 assert_equal(true, !test_null_channel())
778
779 assert_equal(true, !test_null_blob())
780 assert_equal(true, !0z)
781 assert_equal(false, !0z01)
782
783 assert_equal(true, !test_void())
784 assert_equal(true, !test_unknown())
768 enddef 785 enddef
769 786
770 func Test_expr7_fails() 787 func Test_expr7_fails()
771 call CheckDefFailure("let x = (12", "E110:") 788 call CheckDefFailure("let x = (12", "E110:")
772 789