Mercurial > vim
comparison src/testdir/test_vimscript.vim @ 25615:b0f82974ddf4 v8.2.3344
patch 8.2.3344: vimscript test fails
Commit: https://github.com/vim/vim/commit/d2e9ccee90d2b39f4c9fd6cec271ef3fafd76f09
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 14 15:16:00 2021 +0200
patch 8.2.3344: vimscript test fails
Problem: Vimscript test fails.
Solution: Have test verify first error instead of second
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 14 Aug 2021 15:30:03 +0200 |
parents | 21ec48d542a8 |
children | c40554dfe03e |
comparison
equal
deleted
inserted
replaced
25614:614b1cf6ca62 | 25615:b0f82974ddf4 |
---|---|
5655 try | 5655 try |
5656 let v:errmsg = "" | 5656 let v:errmsg = "" |
5657 call EXEC(cmd . ' novar #') " normal plus syntax error | 5657 call EXEC(cmd . ' novar #') " normal plus syntax error |
5658 catch /^Vim\((\a\+)\)\=:/ | 5658 catch /^Vim\((\a\+)\)\=:/ |
5659 Xloop 'e' | 5659 Xloop 'e' |
5660 call assert_match('E488: Trailing characters', v:exception) | 5660 if cmd =~ 'unlet' |
5661 " TODO: should get error for 'novar' | |
5662 call assert_match('E488: Trailing characters', v:exception) | |
5663 else | |
5664 call assert_match('E121: Undefined variable: novar', v:exception) | |
5665 endif | |
5661 finally | 5666 finally |
5662 Xloop 'f' | 5667 Xloop 'f' |
5663 call assert_equal("", v:errmsg) | 5668 call assert_equal("", v:errmsg) |
5664 if cmd == "let" | 5669 if cmd == "let" |
5665 let cmd = "unlet" | 5670 let cmd = "unlet" |