def test_left_most_column_with_one_example4(self):
     """
     Example 4:
     Input: mat = [[0,0,0,1],[0,0,1,1],[0,1,1,1]]
     Output: 1
     """
     m = self.BinaryMatrix([[0, 0, 0, 1], [0, 0, 1, 1], [0, 1, 1, 1]])
     res = LeftmostColumnWithAtLeastAOne().leftMostColumnWithOne(m)
     self.assertEqual(1, res)
 def test_left_most_column_with_one_example3(self):
     """
     Example 3:
     Input: mat = [[0,0],[0,0]]
     Output: -1
     """
     m = self.BinaryMatrix([[0, 0], [0, 0]])
     res = LeftmostColumnWithAtLeastAOne().leftMostColumnWithOne(m)
     self.assertEqual(res, -1)
 def test_left_most_column_with_one_001(self):
     m = self.BinaryMatrix([[0, 0, 1]])
     res = LeftmostColumnWithAtLeastAOne().leftMostColumnWithOne(m)
     self.assertEqual(2, res)