Ejemplo n.º 1
0
 def test_last2(self):
     linq = Linq([])
     linq.last()
Ejemplo n.º 2
0
 def test_last3(self):
     linq = Linq([11, 13, 15, 19])
     assert_equal(linq.last(cond_f=lambda x: x % 3 == 2), 11)
     assert_equal(linq.last(cond_f=lambda x: x % 3 == 2), 11)
Ejemplo n.º 3
0
 def test_last(self):
     linq = Linq([11, 13, 15, 19])
     assert_equal(linq.last(), 19)
     assert_equal(linq.last(), 19)