comparison src/testdir/test_vim9_cmd.vim @ 26658:ed73553992bf v8.2.3858

patch 8.2.3858: Vim9: not enough tests Commit: https://github.com/vim/vim/commit/003312b1d2ee2f4922f473b8bf50af6663c0efac Author: Bram Moolenaar <Bram@vim.org> Date: Mon Dec 20 10:55:35 2021 +0000 patch 8.2.3858: Vim9: not enough tests Problem: Vim9: not enough tests. Solution: Add tests for :try/:catch and :redir. Add missing type check.
author Bram Moolenaar <Bram@vim.org>
date Mon, 20 Dec 2021 12:00:04 +0100
parents a07323eb647f
children 2b17f87b7bd1
comparison
equal deleted inserted replaced
26657:2fd1f389d13c 26658:ed73553992bf
1556 var ls = 'asdf' 1556 var ls = 'asdf'
1557 redir => ls[1] 1557 redir => ls[1]
1558 redir END 1558 redir END
1559 END 1559 END
1560 CheckDefFailure(lines, 'E1141:') 1560 CheckDefFailure(lines, 'E1141:')
1561
1562 lines =<< trim END
1563 var text: string
1564 redir => text
1565 echo 'hello'
1566 redir > Xfile
1567 redir END
1568 END
1569 CheckDefFailure(lines, 'E1185:')
1570
1571 lines =<< trim END
1572 var text: number
1573 redir => text
1574 echo 'hello'
1575 redir END
1576 END
1577 CheckDefFailure(lines, 'E1012:')
1561 enddef 1578 enddef
1562 1579
1563 def Test_echo_void() 1580 def Test_echo_void()
1564 var lines =<< trim END 1581 var lines =<< trim END
1565 vim9script 1582 vim9script