11 lines
195 B
Python
11 lines
195 B
Python
from list2dict import list2dict
|
|
|
|
|
|
def test_empty():
|
|
assert list2dict([]) == {}
|
|
|
|
|
|
def test_abc():
|
|
dictionary = list2dict(["a", "b", "c"])
|
|
assert dictionary == {1: 'a', 2: 'b', 3: 'c'}
|