Example #1
0
 def test_5(self):
     self.assertEqual(list(runs_where([False, True])), [slice(1, 2)])
Example #2
0
 def test_3(self):
     self.assertEqual(list(runs_where([False])), [])
Example #3
0
 def test_4(self):
     self.assertEqual(list(runs_where([True, False])), [slice(0, 1)])
Example #4
0
 def test_1(self):
     self.assertEqual(list(runs_where([])), [])