diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_deque.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_deque.py b/Lib/test/test_deque.py index 51ce7b0..5f2417f 100644 --- a/Lib/test/test_deque.py +++ b/Lib/test/test_deque.py @@ -182,6 +182,10 @@ class TestBasic(unittest.TestCase): self.assertNotEqual(id(d), id(e)) self.assertEqual(list(d), list(e)) + def test_reversed(self): + for s in ('abcd', xrange(2000)): + self.assertEqual(list(reversed(deque(s))), list(reversed(s))) + def R(seqn): 'Regular generator' for i in seqn: |