summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/fix/test_ale_fix.vader9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/fix/test_ale_fix.vader b/test/fix/test_ale_fix.vader
index 0987416b..7e0ea33f 100644
--- a/test/fix/test_ale_fix.vader
+++ b/test/fix/test_ale_fix.vader
@@ -67,7 +67,14 @@ Before:
endfunction
function! FirstChainCallbackSkipped(buffer)
- return {'command': '', 'chain_with': 'SecondChainCallback'}
+ let l:ChainWith = 'SecondChainCallback'
+
+ " Test with lambdas where support is available.
+ if has('lambda')
+ let l:ChainWith = {buffer, output -> SecondChainCallback(buffer, output)}
+ endif
+
+ return {'command': '', 'chain_with': l:ChainWith}
endfunction
function! FirstChainCallbackSecondSkipped(buffer)