comparison src/testdir/test_vim9_cmd.vim @ 28623:1d92ba691dc4 v8.2.4835

patch 8.2.4835: Vim9: some lines not covered by tests Commit: https://github.com/vim/vim/commit/95e4dd813a19236772dbe53eb9f605b4ff5199b2 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Apr 27 22:15:40 2022 +0100 patch 8.2.4835: Vim9: some lines not covered by tests Problem: Vim9: some lines not covered by tests. Solution: Add a few more tests. Fix disassemble output.
author Bram Moolenaar <Bram@vim.org>
date Wed, 27 Apr 2022 23:30:03 +0200
parents b418e073b42f
children a090c60278f5
comparison
equal deleted inserted replaced
28622:a2a087110496 28623:1d92ba691dc4
1689 for choice in [true, false] 1689 for choice in [true, false]
1690 :1s/abc/\=choice ? 'yes' : 'no'/ 1690 :1s/abc/\=choice ? 'yes' : 'no'/
1691 endfor 1691 endfor
1692 assert_equal('yes no abc', getline(1)) 1692 assert_equal('yes no abc', getline(1))
1693 1693
1694 setline(1, 'from')
1695 v9.CheckDefExecFailure(['s/from/\=g:notexist/'], 'E121: Undefined variable: g:notexist')
1696
1694 bwipe! 1697 bwipe!
1695 1698
1696 v9.CheckDefFailure(['s/from/\="x")/'], 'E488:') 1699 v9.CheckDefFailure(['s/from/\="x")/'], 'E488:')
1697 v9.CheckDefFailure(['s/from/\="x"/9'], 'E488:') 1700 v9.CheckDefFailure(['s/from/\="x"/9'], 'E488:')
1698 1701