Mercurial > vim
view src/testdir/test_let.vim @ 15567:c9230ee2b1ad v8.1.0791
patch 8.1.0791: a few compiler warnings on VMS
commit https://github.com/vim/vim/commit/563bbeabcce5580e03648e687bd7ddb9626a03d9
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 22 21:45:40 2019 +0100
patch 8.1.0791: a few compiler warnings on VMS
Problem: A few compiler warnings on VMS.
Solution: Remove type cast. Adjust #ifdef. (Zoltan Arpadffy)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 22 Jan 2019 22:00:05 +0100 |
parents | 0240e7e3d736 |
children | dff66c4670b1 |
line wrap: on
line source
" Tests for the :let command. func Test_let() " Test to not autoload when assigning. It causes internal error. set runtimepath+=./sautest let Test104#numvar = function('tr') call assert_equal("function('tr')", string(Test104#numvar)) let a = 1 let b = 2 let out = execute('let a b') let s = "\na #1\nb #2" call assert_equal(s, out) let out = execute('let {0 == 1 ? "a" : "b"}') let s = "\nb #2" call assert_equal(s, out) let out = execute('let {0 == 1 ? "a" : "b"} a') let s = "\nb #2\na #1" call assert_equal(s, out) let out = execute('let a {0 == 1 ? "a" : "b"}') let s = "\na #1\nb #2" call assert_equal(s, out) endfunc