(self)
| 163 | self.assert_type(l.last()) |
| 164 | |
| 165 | def test_last_option(self): |
| 166 | l = self.seq([1, 2, 3]).map(lambda x: x) |
| 167 | self.assertEqual(l.last_option(), 3) |
| 168 | l = self.seq([1, 2, [3, 4]]).map(lambda x: x) |
| 169 | self.assertEqual(l.last_option(), [3, 4]) |
| 170 | self.assert_type(l.last_option()) |
| 171 | l = self.seq([]) |
| 172 | self.assertIsNone(l.last_option()) |
| 173 | |
| 174 | def test_init(self): |
| 175 | result = self.seq([1, 2, 3, 4]).map(lambda x: x).init() |
nothing calls this directly
no test coverage detected