diff src/testdir/test_expr.vim @ 21622:1f2066e3975a v8.2.1361

patch 8.2.1361: error for white space after expression in assignment Commit: https://github.com/vim/vim/commit/6a25026262e2cdbbd8738361c5bd6ebef8862d87 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 4 15:53:01 2020 +0200 patch 8.2.1361: error for white space after expression in assignment Problem: Error for white space after expression in assignment. Solution: Skip over white space. (closes https://github.com/vim/vim/issues/6617)
author Bram Moolenaar <Bram@vim.org>
date Tue, 04 Aug 2020 16:00:04 +0200
parents 6a4806e326dd
children c3f6006bf0ba
line wrap: on
line diff
--- a/src/testdir/test_expr.vim
+++ b/src/testdir/test_expr.vim
@@ -55,6 +55,9 @@ func Test_dict()
   let d['a'] = 'aaa'
   call assert_equal('none', d[''])
   call assert_equal('aaa', d['a'])
+
+  let d[ 'b' ] = 'bbb'
+  call assert_equal('bbb', d[ 'b' ])
 endfunc
 
 func Test_strgetchar()