Skip to content

Commit 5aeebbe

Browse files
committed
Add unittest for SequenceView sum
1 parent 46707e8 commit 5aeebbe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

unittests/test_utility.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,6 +1081,10 @@ def test_sequence_view():
10811081
assert [1, 2, 2, 3, 4] == l
10821082
assert isinstance(l, util.SequenceView)
10831083

1084+
n = m + l
1085+
assert [1, 2, 2, 1, 2, 2, 3, 4] == n
1086+
assert isinstance(n, util.SequenceView)
1087+
10841088
with pytest.raises(TypeError):
10851089
l[1] = 3
10861090

0 commit comments

Comments
 (0)