Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
reaganjlee committed Aug 16, 2024
1 parent e60e7ee commit 1d3d99e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions testing/test_assertion.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,12 @@ def test_dict_different_items(self) -> None:
" }",
]

def test_dict_sequence_items(self) -> None:
value1 = {"asdf": [1, 1, 1, 1, 1, 1, 1, 1]}
value2 = {"asdf": [1, 1, 1, 1, 1, 1, 1, 2]}
lines = callequal(value1, value2, verbose=0)
assert "{'asdf': 'At index 7 diff: 1 != 2'}" in "".join(lines)

def test_sequence_different_items(self) -> None:
lines = callequal((1, 2), (3, 4, 5), verbose=2)
assert lines == [
Expand Down

0 comments on commit 1d3d99e

Please sign in to comment.