From 31334e64527cca3a827c47b0e9be7fde4dfa7ea0 Mon Sep 17 00:00:00 2001 From: Roozbeh Pournader Date: Thu, 23 Oct 2014 20:18:18 -0700 Subject: Move TestDigitWidths from android tests to general tests. --- scripts/run_android_tests.py | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'scripts/run_android_tests.py') diff --git a/scripts/run_android_tests.py b/scripts/run_android_tests.py index afc066e..097f9bd 100755 --- a/scripts/run_android_tests.py +++ b/scripts/run_android_tests.py @@ -34,23 +34,6 @@ class TestVerticalMetrics(unittest.TestCase): self.assertEqual(head_table.yMax, 2163) -class TestDigitWidths(unittest.TestCase): - """Tests the width of digits.""" - - def setUp(self): - _, self.fonts = load_fonts() - self.digits = [ - 'zero', 'one', 'two', 'three', 'four', - 'five', 'six', 'seven', 'eight', 'nine'] - - def test_digit_widths(self): - """Tests all decimal digits to make sure they have the same width.""" - for font in self.fonts: - hmtx_table = font['hmtx'] - widths = [hmtx_table[digit][0] for digit in self.digits] - self.assertEqual(len(set(widths)), 1) - - class TestCharacterCoverage(unittest.TestCase): """Tests character coverage.""" -- cgit v1.2.3