Home
last modified time | relevance | path

Searched refs:evaluateRule (Results 1 – 2 of 2) sorted by relevance

/external/fonttools/Tests/designspaceLib/
Ddesignspace_test.py15 InstanceDescriptor, evaluateRule, processRules, posix, DesignSpaceDocumentError)
653 assert evaluateRule(r1, dict(axisName_a = 500, axisName_b = 0)) == True
654 assert evaluateRule(r1, dict(axisName_a = 0, axisName_b = 0)) == True
655 assert evaluateRule(r1, dict(axisName_a = 1000, axisName_b = 0)) == True
656 assert evaluateRule(r1, dict(axisName_a = 1000, axisName_b = -100)) == False
657 assert evaluateRule(r1, dict(axisName_a = 1000.0001, axisName_b = 0)) == False
658 assert evaluateRule(r1, dict(axisName_a = -0.0001, axisName_b = 0)) == False
659 assert evaluateRule(r1, dict(axisName_a = -100, axisName_b = 0)) == False
670 assert evaluateRule(r2, dict(axisName_a = 0)) == True
671 assert evaluateRule(r2, dict(axisName_a = -500)) == True
[all …]
/external/fonttools/Lib/fontTools/designspaceLib/
D__init__.py162 def evaluateRule(rule, location): function
191 if evaluateRule(rule, location):