Tests: Add coverage for existing ingo#dict#FromKeys()

This commit is contained in:
Ingo Karkat
2019-05-13 11:36:12 +02:00
parent cfd10538a2
commit 36dfd65f6c
+9
View File
@@ -0,0 +1,9 @@
" 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()