Skip to content

Commit

Permalink
Computed tests extended
Browse files Browse the repository at this point in the history
  • Loading branch information
arekbulski committed Aug 30, 2016
1 parent 5af5c63 commit bb4a13f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ class ZlibCodec(object):

[Computed("computed", lambda ctx: "moo").parse, b"", "moo", None],
[Computed("computed", lambda ctx: "moo").build, None, b"", None],

[Struct("s",Computed("c", lambda ctx: None)).parse, b"", Container(c=None), None],
[Struct("s",Computed("c", lambda ctx: None)).build, Container(c=None), b"", None],
[Struct("s",Computed("c", lambda ctx: None)).build, Container(), b"", None],

[Anchor("anchor").parse, b"", 0, None],
[Anchor("anchor").build, None, b"", None],
Expand Down

0 comments on commit bb4a13f

Please sign in to comment.