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