Skip to content

Commit bfa4cdd

Browse files
author
Luma
committed
Add tests for :func s:baz(a, b = 2, ...)
1 parent 4a79872 commit bfa4cdd

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

test/test1.ok

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
(return 0))
44
(function (s:bar (a 1) (b 2) . ...)
55
(return 0))
6+
(function (s:baz a (b 2) . ...)
7+
(return 0))
68
(if 1
79
(echo "if 1")
810
elseif 2

test/test1.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ endfunction
55
function s:bar(a = 1, b = 2, ...)
66
return 0
77
endfunction
8+
function s:baz(a, b = 2, ...)
9+
return 0
10+
endfunction
811
if 1
912
echo "if 1"
1013
elseif 2

0 commit comments

Comments
 (0)