17 lines
297 B
Python
17 lines
297 B
Python
from hy.models.dict import HyDict
|
|
|
|
|
|
hydict = HyDict(["a", 1, "b", 2, "c", 3])
|
|
|
|
|
|
def test_dict_items():
|
|
assert hydict.items() == [("a", 1), ("b", 2), ("c", 3)]
|
|
|
|
|
|
def test_dict_keys():
|
|
assert hydict.keys() == ["a", "b", "c"]
|
|
|
|
|
|
def test_dict_values():
|
|
assert hydict.values() == [1, 2, 3]
|