Skip to content

Commit

Permalink
Check that 'Disable Last Change' is cast to bool
Browse files Browse the repository at this point in the history
  • Loading branch information
belluzj committed Oct 20, 2017
1 parent cd2b048 commit d3fa265
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/builder_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,10 @@ def test_set_disable_last_change(self):
set_custom_params(self.ufo, parsed=[('Disable Last Change', True)])
self.assertEqual(True,
self.ufo.lib[GLYPHS_PREFIX + 'disablesLastChange'])
# Check coercion to boolean
set_custom_params(self.ufo, parsed=[('Disable Last Change', 1)])
self.assertEqual(True,
self.ufo.lib[GLYPHS_PREFIX + 'disablesLastChange'])


class ParseGlyphsFilterTest(unittest.TestCase):
Expand Down

0 comments on commit d3fa265

Please sign in to comment.