Skip to content

Commit

Permalink
Update canonical access test
Browse files Browse the repository at this point in the history
Test that value 2 sets the canonical parameter to True
  • Loading branch information
vamega authored and Varun Madiath committed Nov 15, 2023
1 parent 171d3cd commit e54b7f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ def test_canonical_attr(impl):
assert not enc.canonical
enc = impl.CBOREncoder(stream, canonical=True)
assert enc.canonical
enc = impl.CBOREncoder(stream, canonical=2)
assert enc.canonical


def test_dump(impl):
Expand Down

0 comments on commit e54b7f0

Please sign in to comment.