Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
cunla committed Feb 20, 2023
1 parent 9d96faa commit 0809506
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/test_mixins/test_streams_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ def test_xstream(r):
stream.add([3, 3, 4, 4], '3-1')
assert len(stream) == 6
i = iter(stream)
assert next(i) == [b'0-1', [[0, 0, 1, 1, 2, 2, 3, 3]]]
assert next(i) == [b'1-2', [[1, 1, 2, 2, 3, 3, 4, 4]]]
assert next(i) == [b'1-3', [[2, 2, 3, 3, 4, 4]]]
assert next(i) == [b'2-1', [[3, 3, 4, 4]]]
assert next(i) == [b'2-2', [[3, 3, 4, 4]]]
assert next(i) == [b'0-1', [0, 0, 1, 1, 2, 2, 3, 3]]
assert next(i) == [b'1-2', [1, 1, 2, 2, 3, 3, 4, 4]]
assert next(i) == [b'1-3', [2, 2, 3, 3, 4, 4]]
assert next(i) == [b'2-1', [3, 3, 4, 4]]
assert next(i) == [b'2-2', [3, 3, 4, 4]]

assert stream.find_index('1-2') == (1, True)
assert stream.find_index('0-1') == (0, True)
Expand Down

0 comments on commit 0809506

Please sign in to comment.