Mercurial > vim
view src/testdir/test104.in @ 10279:c5c15c818bda v8.0.0036
commit https://github.com/vim/vim/commit/97792de2762cc79cc365a8a0b858f27753179577
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 15 18:36:49 2016 +0200
patch 8.0.0036
Problem: Detecting that a job has finished may take a while.
Solution: Check for a finished job more often (Ozaki Kiichi)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 15 Oct 2016 18:45:04 +0200 |
parents | 839cca5ec18d |
children |
line wrap: on
line source
Tests for :let. 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 :let a = 1 :let b = 2 :for letargs in ['a b', '{0 == 1 ? "a" : "b"}', '{0 == 1 ? "a" : "b"} a', 'a {0 == 1 ? "a" : "b"}'] : try : redir => messages : execute 'let' letargs : redir END : $put ='OK:' : $put =split(substitute(messages, '\n', '\0 ', 'g'), '\n') : catch : $put ='FAIL: ' . v:exception : redir END : endtry :endfor :/^Results/,$wq! test.out ENDTEST Results of test104: