Nikolaus Waxweiler
01328213c7
Remove __future__ imports
2019-08-09 12:20:13 +01:00
Denis Moyogo Jacquerye
7e3164e8da
kern table: add tests for overflowing subtable
2018-11-20 12:41:57 +00:00
Cosimo Lupo
a12bfa160a
[_k_e_r_n_test] test toXML/fromXML for unknown formats
2017-11-04 12:02:57 +00:00
Cosimo Lupo
d715575794
[_k_e_r_n] fix order of format/coverage bytes
...
In OT kern subtable header, the format is the high byte of 'coverage'
bit mask (bits 8-15), and the low byte (bits 0-7) is the actual coverage
bits.
In AAT kern, it's the opposite: the coverage flags are the high byte,
whereas the subtable format is the low byte.
Also adjusted the test data, and set coverage to 1 for OT kern subtable
(which means the usual horizontal kerning).
2017-11-04 10:56:07 +00:00
Cosimo Lupo
5d16828031
fixup
...
had removed that fixture and squashed.. should have re-run the test
before pushing :-/
2017-11-03 20:07:09 +00:00
Cosimo Lupo
a2a4f45ef2
[_k_e_r_n_test] decompile/compile tests for unknown formats
2017-11-03 20:00:04 +00:00
Cosimo Lupo
5f2177a990
[_k_e_r_n_test] Add tests for OT and AAT kern format 0 subtable
2017-11-03 16:08:37 +00:00
Cosimo Lupo
240ef765a8
[_k_e_r_n_test] rewrite as pytest-style; fix indentation
2017-11-02 10:37:56 +00:00
Cosimo Lupo
e1d340cc65
[Tests] use absolute imports and add __init__.py where relevant
...
We can't use relative imports any more since the tests are now located outside the package.
I had to add __init__.py to Tests/feaLib/ so that pytest does not get confused by the presence
of two test files with the same basename: i.e. Tests/feaLib/builder_test.py and Tests/feaLib/builder_test.py
https://github.com/pytest-dev/pytest/issues/774
http://stackoverflow.com/questions/12582503/py-test-test-discovery-failure-when-tests-in-different-directories-are-called
2017-01-16 09:14:13 +00:00
Cosimo Lupo
78ad48eaf3
Move all *_test.py modules and test data to external Tests/ folder
2017-01-16 09:14:12 +00:00