Skip to content

Commit

Permalink
add empty str and empty bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
TingDaoK committed Apr 22, 2024
1 parent eefd3f0 commit 9623e51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_cbor.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ def test_cbor_encode_decode_data_item(self):
"empty array": [],
"True": True,
"False": False,
"empty str": "",
"empty bytes": b"",
}
encoder.write_data_item_2(val_to_write)

decoder = AwsCborDecoder(encoder.get_encoded_data())

# Temp val only for easier to debug.
t = decoder.pop_next_data_item()
print(t)
print(val_to_write)
self.assertEqual(val_to_write, t)
self.assertEqual(val_to_write, t)

0 comments on commit 9623e51

Please sign in to comment.