From 9623e51490a8a09761bc0a1ccf88ee24c19e1dc9 Mon Sep 17 00:00:00 2001 From: Dengke Tang Date: Mon, 22 Apr 2024 14:18:56 -0700 Subject: [PATCH] add empty str and empty bytes --- test/test_cbor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_cbor.py b/test/test_cbor.py index 1d0dec18..7c0bc4cc 100644 --- a/test/test_cbor.py +++ b/test/test_cbor.py @@ -54,6 +54,8 @@ 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) @@ -61,6 +63,4 @@ def test_cbor_encode_decode_data_item(self): # 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) \ No newline at end of file + self.assertEqual(val_to_write, t)