def test_extract_last_number_occurrence2(self): self.assertEqual('93', calculator.extract_last_number_occurrence('34+93-*/+='))
def test_extract_last_number_occurrence_with_fail1(self): with self.assertRaises(Exception): calculator.extract_last_number_occurrence('')
def test_extract_last_number_occurrence1(self): self.assertEqual('28.6', calculator.extract_last_number_occurrence('34+93-28.6'))