Adding upstream version 1.8.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
c48d95b7fa
commit
e40b3259c1
2403 changed files with 153656 additions and 0 deletions
36
tests/ufo/test_36_psfexportunicodes.py
Normal file
36
tests/ufo/test_36_psfexportunicodes.py
Normal file
|
@ -0,0 +1,36 @@
|
|||
#!/usr/bin/env python
|
||||
'Test for psfexportunicodes'
|
||||
__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.psfexportunicodes as testcommand
|
||||
testname = "psfexportunicodes"
|
||||
cl = "psfexportunicodes tests/input/font-psf-test/source/PsfTest-BoldItalic.ufo -o local/testresults/ufo/psfexportunicodes.csv -l local/testresults/ufo/psfexportunicodes.log"
|
||||
outfont = None
|
||||
diffexts = [".csv", ".log"]
|
||||
exp_errors = 0 # These may need updating if the test ufo is updated
|
||||
exp_warnings = 7 # 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()
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue