diff options
-rwxr-xr-x | scripts/run_android_tests.py | 8 | ||||
-rwxr-xr-x | scripts/run_general_tests.py | 15 |
2 files changed, 15 insertions, 8 deletions
diff --git a/scripts/run_android_tests.py b/scripts/run_android_tests.py index 819f065..afc066e 100755 --- a/scripts/run_android_tests.py +++ b/scripts/run_android_tests.py @@ -74,14 +74,6 @@ class TestCharacterCoverage(unittest.TestCase): self.assertNotIn(0x2073, charset) self.assertNotIn(0x208F, charset) - def test_inclusion_of_sound_recording_copyright(self): - """Tests that sound recording copyright symbol is in the fonts.""" - for font in self.fonts: - charset = coverage.character_set(font) - self.assertIn( - 0x2117, charset, # SOUND RECORDING COPYRIGHT - 'U+2117 not found in %s.' % font_data.font_name(font)) - def test_inclusion_of_legacy_pua(self): """Tests that legacy PUA characters remain in the fonts.""" for font in self.fonts: diff --git a/scripts/run_general_tests.py b/scripts/run_general_tests.py index 0785b4e..687bdec 100755 --- a/scripts/run_general_tests.py +++ b/scripts/run_general_tests.py @@ -5,6 +5,7 @@ import glob import unittest from fontTools import ttLib +from nototools import coverage from nototools import font_data @@ -33,6 +34,20 @@ class TestItalicAngle(unittest.TestCase): expected_angle = 0.0 self.assertEqual(post_table.italicAngle, expected_angle) +class TestCharacterCoverage(unittest.TestCase): + """Tests character coverage.""" + + def setUp(self): + _, self.fonts = load_fonts() + + def test_inclusion_of_sound_recording_copyright(self): + """Tests that sound recording copyright symbol is in the fonts.""" + for font in self.fonts: + charset = coverage.character_set(font) + self.assertIn( + 0x2117, charset, # SOUND RECORDING COPYRIGHT + 'U+2117 not found in %s.' % font_data.font_name(font)) + if __name__ == '__main__': unittest.main() |