Skip to content

Commit 34802c5

Browse files
committed
Expand reverse test
1 parent acef5a2 commit 34802c5

File tree

1 file changed

+6
-0
lines changed
  • graalpython/com.oracle.graal.python.test/src/tests

1 file changed

+6
-0
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_list.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,12 @@ def test_reverse(self):
849849
storage_to_native(l)
850850
l.reverse()
851851
self.assertEqual([1, 2, 3], l)
852+
l.append(4)
853+
l.reverse()
854+
self.assertEqual([4, 3, 2, 1], l)
855+
del l[:-1]
856+
l.reverse()
857+
self.assertEqual([1], l)
852858

853859

854860
if __name__ == '__main__':

0 commit comments

Comments
 (0)