Commit Graph

4 Commits

Author SHA1 Message Date
gpotter2 d02b7f5bf2 New tests to avoid randomness of coverage 2017-04-22 19:48:24 +02:00
gpotter2 d2d7d2dac9 Auto parser on tests 2017-03-21 22:38:45 +01:00
Florian Maury c8261e4dc7 Adding callbacks to EnumField and lots of EnumField tests
- this feature allows conversion of large ranges where
    all entries coalesce to the same representation without bloating
    a dict. For instance, 0x0 to 0xffff all display as "toto" except
    a few odds 0x2 which are displayed as "tutu".
    Before this feature, you needed to write
    enum = {x: 'toto' for x in xrange(0, 0xffff)
    enum[2] = 'tutu'
    XShortEnumField('test', 0, enum)
2017-02-07 10:18:43 +01:00
Florian Maury 784f44c880 Moving into another file the unit tests related to fields 2017-02-07 10:18:41 +01:00