Mercurial > vim
comparison src/testdir/test_let.vim @ 25611:f142bfebaac1 v8.2.3342
patch 8.2.3342: test for :let errors fails
Commit: https://github.com/vim/vim/commit/b521766c56c0e17db6e8615f35cf21012af0670c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 14 14:27:30 2021 +0200
patch 8.2.3342: test for :let errors fails
Problem: Test for :let errors fails.
Solution: Adjust the test and how to avoid a second error message.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 14 Aug 2021 14:30:04 +0200 |
parents | 3b8d3b383fd6 |
children | 769599ee9f06 |
comparison
equal
deleted
inserted
replaced
25610:ac9f242ebb9e | 25611:f142bfebaac1 |
---|---|
277 call assert_fails('let s[1] = 5', 'E689:') | 277 call assert_fails('let s[1] = 5', 'E689:') |
278 | 278 |
279 let l = [1, 2, 3] | 279 let l = [1, 2, 3] |
280 call assert_fails('let l[:] = 5', 'E709:') | 280 call assert_fails('let l[:] = 5', 'E709:') |
281 | 281 |
282 call assert_fails('let x:lnum=5', ['E121:', 'E488:']) | 282 call assert_fails('let x:lnum=5', ['E121:', 'E121:']) |
283 call assert_fails('let v:=5', 'E461:') | 283 call assert_fails('let v:=5', 'E461:') |
284 call assert_fails('let [a]', 'E474:') | 284 call assert_fails('let [a]', 'E474:') |
285 call assert_fails('let [a, b] = [', 'E697:') | 285 call assert_fails('let [a, b] = [', 'E697:') |
286 call assert_fails('let [a, b] = [10, 20', 'E696:') | 286 call assert_fails('let [a, b] = [10, 20', 'E696:') |
287 call assert_fails('let [a, b] = 10', 'E714:') | 287 call assert_fails('let [a, b] = 10', 'E714:') |