Example #1
0
 def test_over_max(self):
     self.assertFalse(is_non_zero_arabic_numeral("3900"))
Example #2
0
 def test_middle(self):
     self.assertTrue(is_non_zero_arabic_numeral("2000"))
Example #3
0
 def test_positive(self):
     self.assertTrue(is_non_zero_arabic_numeral("1"))
Example #4
0
 def test_negative(self):
     self.assertFalse(is_non_zero_arabic_numeral("-1"))
Example #5
0
 def test_zeroes(self):
     self.assertFalse(is_non_zero_arabic_numeral("000000000000000"))
Example #6
0
 def test_not_digit(self):
     self.assertFalse(is_non_zero_arabic_numeral("a#/."))
Example #7
0
 def test_empty_string(self):
     self.assertFalse(is_non_zero_arabic_numeral(""))