summaryrefslogtreecommitdiff
path: root/scripts/run_general_tests.py
diff options
context:
space:
mode:
authorJames Godfrey-Kittle <jamesgk19@gmail.com>2015-10-06 09:48:10 -0700
committerJames Godfrey-Kittle <jamesgk19@gmail.com>2015-10-06 09:48:10 -0700
commitc47aca74e901b0ab7cd6bb27908ea9c8617215f6 (patch)
treef71526746bd2dabdefed07a6e939eb483505bdf0 /scripts/run_general_tests.py
parent92bd6f2335936dfdc09aa13bf26591cce066472b (diff)
parent1f8ddaddfdce30c3b1dfd2a5ab2a80fb2a0c2eee (diff)
Merge pull request #116 from jamesgk/testing
Test consolidation
Diffstat (limited to 'scripts/run_general_tests.py')
-rwxr-xr-xscripts/run_general_tests.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/scripts/run_general_tests.py b/scripts/run_general_tests.py
index 7ec8fcc..30445cd 100755
--- a/scripts/run_general_tests.py
+++ b/scripts/run_general_tests.py
@@ -54,6 +54,15 @@ class TestDigitWidths(common_tests.TestDigitWidths):
class TestCharacterCoverage(common_tests.TestCharacterCoverage):
loaded_fonts = FONTS
+ include = frozenset([
+ 0x2117, # SOUND RECORDING COPYRIGHT
+ 0xEE01, 0xEE02, 0xF6C3]) # legacy PUA
+
+ exclude = frozenset([
+ 0x2072, 0x2073, 0x208F] + # unassigned characters
+ range(0xE000, 0xF8FF + 1) + range(0xF0000, 0x10FFFF + 1) # other PUA
+ ) - include # don't exclude legacy PUA
+
class TestLigatures(common_tests.TestLigatures):
loaded_fonts = FONTS
@@ -67,6 +76,10 @@ class TestVerticalMetrics(common_tests.TestVerticalMetrics):
loaded_fonts = FONTS
test_ymin_ymax = None
test_hhea_table_metrics = None
+ test_os2_metrics = None
+
+ expected_head_yMin = -555
+ expected_head_yMax = 2163
class TestGlyphAreas(common_tests.TestGlyphAreas):
@@ -76,4 +89,3 @@ class TestGlyphAreas(common_tests.TestGlyphAreas):
if __name__ == '__main__':
unittest.main()
-