mirror of
https://github.com/inkarkat/vim-ingo-library.git
synced 2026-10-01 12:56:44 +02:00
10 lines
295 B
VimL
10 lines
295 B
VimL
" Test creating Dict from keys.
|
|
|
|
call vimtest#StartTap()
|
|
call vimtap#Plan(2)
|
|
|
|
call vimtap#Is(ingo#dict#FromKeys([], 1), {}, 'create with empty keys')
|
|
call vimtap#Is(ingo#dict#FromKeys(['foo', 'bar', 'baz'], 1), {'foo': 1, 'bar': 1, 'baz': 1}, 'create with default value 1')
|
|
|
|
call vimtest#Quit()
|