mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 05:40:05 +08:00
16 lines
566 B
Plaintext
16 lines
566 B
Plaintext
Execute (func() -> undefined):
|
|
let completed_item = {'info': 'func() -> undefined'}
|
|
let result = cm_parser#erlang#parameters(completed_item)
|
|
AssertEqual ['()'], result
|
|
|
|
Execute (func(foo) -> ran()):
|
|
let completed_item = {'info': 'func(foo) -> ran()'}
|
|
let result = cm_parser#erlang#parameters(completed_item)
|
|
AssertEqual ['(foo)'], result
|
|
|
|
Execute (func(foo, bar) -> undefined | ran()):
|
|
let completed_item = {'info': 'func(foo, bar) -> undefined | ran()'}
|
|
let result = cm_parser#erlang#parameters(completed_item)
|
|
AssertEqual ['(foo, bar)'], result
|
|
|