Skip to content

Commit

Permalink
test_count: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ebonnal committed Oct 16, 2024
1 parent 7727125 commit 05595d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -1361,14 +1361,14 @@ def effect(x: int) -> None:
N,
msg="`count` should return the count of elements.",
)
self.assertListEqual(
l, list(src), msg="`count` should iterate over the entire stream."
)
self.assertEqual(
stream(),
N,
msg="`__call__` should return the count of elements.",
)
self.assertListEqual(
l, list(src), msg="`exhaust` should iterate over the entire stream."
)

def test_multiple_iterations(self) -> None:
stream = Stream(src)
Expand Down

0 comments on commit 05595d6

Please sign in to comment.