Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
21621:1ff1931aa192 | 21622:1f2066e3975a |
---|---|
53 | 53 |
54 let d[''] = 'none' | 54 let d[''] = 'none' |
55 let d['a'] = 'aaa' | 55 let d['a'] = 'aaa' |
56 call assert_equal('none', d['']) | 56 call assert_equal('none', d['']) |
57 call assert_equal('aaa', d['a']) | 57 call assert_equal('aaa', d['a']) |
58 | |
59 let d[ 'b' ] = 'bbb' | |
60 call assert_equal('bbb', d[ 'b' ]) | |
58 endfunc | 61 endfunc |
59 | 62 |
60 func Test_strgetchar() | 63 func Test_strgetchar() |
61 call assert_equal(char2nr('a'), strgetchar('axb', 0)) | 64 call assert_equal(char2nr('a'), strgetchar('axb', 0)) |
62 call assert_equal(char2nr('x'), 'axb'->strgetchar(1)) | 65 call assert_equal(char2nr('x'), 'axb'->strgetchar(1)) |