Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
benkiel committed Nov 5, 2024
1 parent b369eed commit ad93046
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Lib/fontParts/test/test_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,18 @@ def test_update(self):
self.assertEqual(info1.familyName, "test2")
self.assertEqual(info1.unitsPerEm, 2000)

# ----
# Copy
# ----
def test_copy(self):
info1 = self.getInfo_generic()
info1.postscriptBlueValues = [-10, 0, 50, 60]

info2 = info1.copy()
info2.postscriptBlueValues[0] = -2

self.assertNotEqual(info1.postscriptBlueValues, info2.postscriptBlueValues)

# -------------
# Interpolation
# -------------
Expand Down

0 comments on commit ad93046

Please sign in to comment.