Exemple #1
0
 def test_reversed(self):
     l = [1, 2, 3]
     dr = sn.reversed(l)
     self.assertEqual([3, 2, 1], list(evaluate(dr)))
Exemple #2
0
def test_reversed():
    l = [1, 2, 3]
    dr = sn.reversed(l)
    assert [3, 2, 1] == list(sn.evaluate(dr))