Lines Matching refs:normalizeLocation
2 normalizeLocation, supportScalar, VariationModel, VariationModelError)
8 assert normalizeLocation({"wght": 400}, axes) == {'wght': 0.0}
9 assert normalizeLocation({"wght": 100}, axes) == {'wght': -1.0}
10 assert normalizeLocation({"wght": 900}, axes) == {'wght': 1.0}
11 assert normalizeLocation({"wght": 650}, axes) == {'wght': 0.5}
12 assert normalizeLocation({"wght": 1000}, axes) == {'wght': 1.0}
13 assert normalizeLocation({"wght": 0}, axes) == {'wght': -1.0}
16 assert normalizeLocation({"wght": 0}, axes) == {'wght': 0.0}
17 assert normalizeLocation({"wght": -1}, axes) == {'wght': 0.0}
18 assert normalizeLocation({"wght": 1000}, axes) == {'wght': 1.0}
19 assert normalizeLocation({"wght": 500}, axes) == {'wght': 0.5}
20 assert normalizeLocation({"wght": 1001}, axes) == {'wght': 1.0}
23 assert normalizeLocation({"wght": 0}, axes) == {'wght': -1.0}
24 assert normalizeLocation({"wght": -1}, axes) == {'wght': -1.0}
25 assert normalizeLocation({"wght": 500}, axes) == {'wght': -0.5}
26 assert normalizeLocation({"wght": 1000}, axes) == {'wght': 0.0}
27 assert normalizeLocation({"wght": 1001}, axes) == {'wght': 0.0}