mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:7.4.167
Problem: Fixes are not tested. Solution: Add a test for not autoloading on assignment. (Yukihiro Nakadaira) https://code.google.com/p/vim/source/detail?r=22387c8eec43ea8b1b704cad49c8f7187e2fd579
This commit is contained in:
parent
1e7dfc8c90
commit
77c2c69479
@ -25,7 +25,8 @@ SCRIPTS := test1.out test2.out test3.out test4.out test5.out test6.out \
|
|||||||
test84.out test85.out test86.out test87.out test88.out \
|
test84.out test85.out test86.out test87.out test88.out \
|
||||||
test89.out test90.out test91.out test92.out test93.out \
|
test89.out test90.out test91.out test92.out test93.out \
|
||||||
test94.out test95.out test96.out test97.out test98.out \
|
test94.out test95.out test96.out test97.out test98.out \
|
||||||
test99.out test100.out test101.out test102.out test103.out
|
test99.out test100.out test101.out test102.out test103.out \
|
||||||
|
test104.out
|
||||||
|
|
||||||
SCRIPTS_GUI := test16.out
|
SCRIPTS_GUI := test16.out
|
||||||
|
|
||||||
|
1
src/testdir/sautest/autoload/Test104.vim
Normal file
1
src/testdir/sautest/autoload/Test104.vim
Normal file
@ -0,0 +1 @@
|
|||||||
|
let Test104#numvar = 123
|
16
src/testdir/test104.in
Normal file
16
src/testdir/test104.in
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
Tests for autoload. vim: set ft=vim ts=8 :
|
||||||
|
|
||||||
|
STARTTEST
|
||||||
|
:so small.vim
|
||||||
|
:set runtimepath+=./sautest
|
||||||
|
:" Test to not autoload when assigning. It causes internal error.
|
||||||
|
:try
|
||||||
|
: let Test104#numvar = function('tr')
|
||||||
|
: $put ='OK: ' . string(Test104#numvar)
|
||||||
|
:catch
|
||||||
|
: $put ='FAIL: ' . v:exception
|
||||||
|
:endtry
|
||||||
|
:/^Results/,$wq! test.out
|
||||||
|
ENDTEST
|
||||||
|
|
||||||
|
Results of test104:
|
2
src/testdir/test104.ok
Normal file
2
src/testdir/test104.ok
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
Results of test104:
|
||||||
|
OK: function('tr')
|
@ -234,7 +234,7 @@ static int included_patches[] = {
|
|||||||
170,
|
170,
|
||||||
169,
|
169,
|
||||||
//168,
|
//168,
|
||||||
//167,
|
167,
|
||||||
166,
|
166,
|
||||||
//165,
|
//165,
|
||||||
//164,
|
//164,
|
||||||
|
Loading…
Reference in New Issue
Block a user