Esempio n. 1
0
 def test_last2(self):
     linq = Linq([])
     linq.last()
Esempio 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)
Esempio n. 3
0
 def test_last(self):
     linq = Linq([11, 13, 15, 19])
     assert_equal(linq.last(), 19)
     assert_equal(linq.last(), 19)