Skip to content

Commit

Permalink
test: iter
Browse files Browse the repository at this point in the history
  • Loading branch information
01Joseph-Hwang10 committed Mar 4, 2024
1 parent 7790c64 commit 7b06c4d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_dotty_value_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,3 +264,12 @@ def test_non_standard_key_types(dot):
assert dict_bool == "bool"
assert dict_none == "None"
assert nested_dict_float == "nested_float"


def test_iter_for_loop(dot):
for key in dot:
assert key in dot


def test_iter_list_comprehension(dot):
assert list(dot) == ["flat_key", "deep"]

0 comments on commit 7b06c4d

Please sign in to comment.