Mercurial > vim
comparison src/testdir/test_vim9_expr.vim @ 19469:55656a51d2af v8.2.0292
patch 8.2.0292: Vim9: CHECKNR and CHECKTYPE instructions not tested
Commit: https://github.com/vim/vim/commit/09f28f49c9b5973593f8a9b445cdc2ed3da630b6
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Feb 20 23:08:34 2020 +0100
patch 8.2.0292: Vim9: CHECKNR and CHECKTYPE instructions not tested
Problem: Vim9: CHECKNR and CHECKTYPE instructions not tested.
Solution: Add tests.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 20 Feb 2020 23:15:03 +0100 |
parents | 08ef11a81daa |
children | 0d3dcb4476ba |
comparison
equal
deleted
inserted
replaced
19468:60814cbadf88 | 19469:55656a51d2af |
---|---|
779 call CheckDefFailure("let x = ¬exist", 'E113:') | 779 call CheckDefFailure("let x = ¬exist", 'E113:') |
780 call CheckDefExecFailure("&grepprg = [343]", 'E1051:') | 780 call CheckDefExecFailure("&grepprg = [343]", 'E1051:') |
781 | 781 |
782 call CheckDefExecFailure("echo s:doesnt_exist", 'E121:') | 782 call CheckDefExecFailure("echo s:doesnt_exist", 'E121:') |
783 call CheckDefExecFailure("echo g:doesnt_exist", 'E121:') | 783 call CheckDefExecFailure("echo g:doesnt_exist", 'E121:') |
784 | |
785 call CheckDefExecFailure("let x = +g:astring", 'E1030:') | |
786 call CheckDefExecFailure("let x = +g:ablob", 'E974:') | |
787 call CheckDefExecFailure("let x = +g:alist", 'E745:') | |
788 call CheckDefExecFailure("let x = +g:adict", 'E728:') | |
784 endfunc | 789 endfunc |
785 | 790 |
786 let g:Funcrefs = [function('add')] | 791 let g:Funcrefs = [function('add')] |
787 | 792 |
788 func CallMe(arg) | 793 func CallMe(arg) |