summaryrefslogtreecommitdiff
path: root/test/fix
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-11-22 22:39:43 +0000
committerw0rp <devw0rp@gmail.com>2017-11-22 22:39:43 +0000
commit8dd542bed0dd39f4af6897410d36a048fe796518 (patch)
tree8e2b4aca8a4e67facbb4c132e9572de05867206b /test/fix
parentd07b5b71a460eb0eeb5956f0da9dc409c24723aa (diff)
downloadale-8dd542bed0dd39f4af6897410d36a048fe796518.zip
Fix lambda and funcref chain values
Diffstat (limited to 'test/fix')
-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)