Exemple #1
0
 def test_is_digit_true_minus_few(self):
     self.assertEqual(calculator.is_digit('-0.05'), True)
Exemple #2
0
 def test_is_digit_true_zero_double(self):
     self.assertEqual(calculator.is_digit('00.05'), True)
Exemple #3
0
 def test_is_digit_false(self):
     self.assertEqual(calculator.is_digit('a'), False)
Exemple #4
0
 def test_is_digit_true_minus_kana(self):
     self.assertEqual(calculator.is_digit(str('ー1')), True)
Exemple #5
0
 def test_is_digit_true_few(self):
     self.assertEqual(calculator.is_digit(str(0.1)), True)
Exemple #6
0
 def test_is_digit_true_minus(self):
     self.assertEqual(calculator.is_digit(str(-1)), True)