diff options
author | Daniel Baumann <daniel@debian.org> | 2024-11-21 15:00:40 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2024-11-21 15:00:40 +0100 |
commit | 012d9cb5faed22cb9b4151569d30cc08563b02d1 (patch) | |
tree | fd901b9c231aeb8afa713851f23369fa4a1af2b3 /tests/ufo/test_18_psfcheckbasicchars.py | |
parent | Initial commit. (diff) | |
download | pysilfont-012d9cb5faed22cb9b4151569d30cc08563b02d1.tar.xz pysilfont-012d9cb5faed22cb9b4151569d30cc08563b02d1.zip |
Adding upstream version 1.8.0.upstream/1.8.0upstream
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'tests/ufo/test_18_psfcheckbasicchars.py')
-rw-r--r-- | tests/ufo/test_18_psfcheckbasicchars.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/ufo/test_18_psfcheckbasicchars.py b/tests/ufo/test_18_psfcheckbasicchars.py new file mode 100644 index 0000000..3891405 --- /dev/null +++ b/tests/ufo/test_18_psfcheckbasicchars.py @@ -0,0 +1,36 @@ +#!/usr/bin/env python +'Test for psfcheckbasicchars' +__url__ = 'https://github.com/silnrsi/pysilfont' +__copyright__ = 'Copyright (c) 2018 SIL International (https://www.sil.org)' +__license__ = 'Released under the MIT License (https://opensource.org/licenses/MIT)' +__author__ = 'David Raymond' + +import silfont.util + +# Next 5 lines of code are test-specific +import silfont.scripts.psfcheckbasicchars as testcommand +testname = "psfcheckbasicchars" +cl = "psfcheckbasicchars tests/input/font-psf-test/source/PsfTest-Regular.ufo -l local/testresults/ufo/psfcheckbasicchars.log" +outfont = None +diffexts = [".log"] +exp_errors = 1 # These may need updating if the test ufo is updated +exp_warnings = 192 # The test ufo should have some errors/warnings to test the code! + +# Code after this can be the same for most tests; if needed to be different for a test remove this comment! + +def test_run(): + result = silfont.util.test_run("UFO", cl, testcommand, outfont, exp_errors, exp_warnings) + assert result + +def test_diffs(): # Generic function for all UFO tests + result = silfont.util.test_diffs("ufo", testname, diffexts) + assert result + +if __name__ == "__main__": + test_run() + test_diffs() + + + + + |