diff src/testdir/test104.in @ 5641:22387c8eec43 v7.4.167

updated for version 7.4.167 Problem: Fixes are not tested. Solution: Add a test for not autoloading on assignment. (Yukihiro Nakadaira)
author Bram Moolenaar <bram@vim.org>
date Wed, 05 Feb 2014 22:26:05 +0100
parents
children 839cca5ec18d
line wrap: on
line diff
new file mode 100644
--- /dev/null
+++ b/src/testdir/test104.in
@@ -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: