(self)
| 1119 | self.assertTrue(count >= 10, count) # should have tested at least the ASCII digits |
| 1120 | |
| 1121 | def test_digit_numeric_consistent(self): |
| 1122 | # Test that digit and numeric are consistent, |
| 1123 | # i.e. if a character has a digit value, |
| 1124 | # its numeric value should be the same. |
| 1125 | count = 0 |
| 1126 | for c in iterallchars(): |
| 1127 | dec = self.db.digit(c, -1) |
| 1128 | if dec != -1: |
| 1129 | self.assertEqual(dec, self.db.numeric(c)) |
| 1130 | count += 1 |
| 1131 | self.assertTrue(count >= 10, count) # should have tested at least the ASCII digits |
| 1132 | |
| 1133 | def test_normalize_consistent(self): |
| 1134 | allchars = list(iterallchars()) |
nothing calls this directly
no test coverage detected