comparison src/testdir/test_true_false.vim @ 22087:ff21e2962490 v8.2.1593

patch 8.2.1593: tests do not check the error number properly Commit: https://github.com/vim/vim/commit/e2e4075fad1326181edc5a131e48c644ef613693 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 4 21:18:46 2020 +0200 patch 8.2.1593: tests do not check the error number properly Problem: Tests do not check the error number properly.0 Solution: Add a colon after the error number. (closes https://github.com/vim/vim/issues/6869)
author Bram Moolenaar <Bram@vim.org>
date Fri, 04 Sep 2020 21:30:04 +0200
parents 08940efa6b4e
children 029c59bf78f1
comparison
equal deleted inserted replaced
22086:0fbcd63c0cc2 22087:ff21e2962490
38 if "1foo" 38 if "1foo"
39 else 39 else
40 call assert_true(false, 'one in string is true') 40 call assert_true(false, 'one in string is true')
41 endif 41 endif
42 42
43 call assert_fails('if [1]', 'E745') 43 call assert_fails('if [1]', 'E745:')
44 call assert_fails('if {1: 1}', 'E728') 44 call assert_fails('if {1: 1}', 'E728:')
45 call assert_fails('if function("string")', 'E703') 45 call assert_fails('if function("string")', 'E703:')
46 if has('float') 46 if has('float')
47 call assert_fails('if 1.3")', 'E805') 47 call assert_fails('if 1.3")', 'E805:')
48 endif 48 endif
49 endfunc 49 endfunc
50 50
51 function Try_arg_true_false(expr, false_val, true_val) 51 function Try_arg_true_false(expr, false_val, true_val)
52 for v in ['v:false', '0', '"0"', '"foo"', '" "'] 52 for v in ['v:false', '0', '"0"', '"foo"', '" "']