Skip to content

Commit

Permalink
[test_mathKerning] no need to call sorted() on merged kerning groups
Browse files Browse the repository at this point in the history
These are now already sorted (#72)
  • Loading branch information
anthrotype committed Oct 1, 2017
1 parent 5d1a490 commit 3dbac89
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Lib/fontMath/test/test_mathKerning.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,10 @@ def test_add(self):
(('public.kern1.NotIn1', 'C'), 1),
(('public.kern1.NotIn2', 'C'), 1)])
self.assertEqual(
sorted(obj.groups()["public.kern1.D"]),
obj.groups()["public.kern1.D"],
['D', 'H'])
self.assertEqual(
sorted(obj.groups()["public.kern2.D"]),
obj.groups()["public.kern2.D"],
['D', 'H'])

def test_add_same_groups(self):
Expand Down Expand Up @@ -189,10 +189,10 @@ def test_add_same_groups(self):
(('public.kern1.NotIn1', 'C'), 1),
(('public.kern1.NotIn2', 'C'), 1)])
self.assertEqual(
sorted(obj.groups()["public.kern1.D"]),
obj.groups()["public.kern1.D"],
['D', 'H'])
self.assertEqual(
sorted(obj.groups()["public.kern2.D"]),
obj.groups()["public.kern2.D"],
['D', 'H'])

def test_sub(self):
Expand Down Expand Up @@ -229,10 +229,10 @@ def test_sub(self):
(('public.kern1.NotIn1', 'C'), -1),
(('public.kern1.NotIn2', 'C'), 1)])
self.assertEqual(
sorted(obj.groups()["public.kern1.D"]),
obj.groups()["public.kern1.D"],
['D', 'H'])
self.assertEqual(
sorted(obj.groups()["public.kern2.D"]),
obj.groups()["public.kern2.D"],
['D', 'H'])

def test_mul(self):
Expand Down

0 comments on commit 3dbac89

Please sign in to comment.