Add more glyphs to test group to prove order is preserved

This commit is contained in:
Tom Archer 2020-05-22 10:41:10 +01:00
parent 6f72429150
commit 0e04e039cf
2 changed files with 6 additions and 2 deletions

View File

@ -4197,9 +4197,9 @@ class UFO3ReadDataTestCase(unittest.TestCase):
# Kerning group duplicates are removed
expected_groups = {
"group1" : ["A"],
"group2" : ["B", "B"],
"group2" : ["B", "C", "B"],
"public.kern1.A" : ["A"],
"public.kern2.B" : ["B"],
"public.kern2.B" : ["B", "A", "C"],
}
reader = UFOReader(self.getFontPath())
groups = reader.readGroups()

View File

@ -9,6 +9,7 @@
<key>group2</key>
<array>
<string>B</string>
<string>C</string>
<string>B</string>
</array>
<key>public.kern1.A</key>
@ -18,7 +19,10 @@
<key>public.kern2.B</key>
<array>
<string>B</string>
<string>A</string>
<string>B</string>
<string>A</string>
<string>C</string>
</array>
</dict>
</plist>