X-Git-Url: https://code.kerkeslager.com/?p=sandbox;a=blobdiff_plain;f=serial%2Ftest.py;fp=serial%2Ftest.py;h=6e176917477a2c0b4eea2e605c8c0752d1ba8124;hp=ffa9f91f5d182cd364a2e833eede2cd7d1c719ca;hb=6cb74967b5b52c7b072c0477aa19e52f30b67d7a;hpb=9e1f1cb3fc3668dbddca9c6e0461ffca8543fd50 diff --git a/serial/test.py b/serial/test.py index ffa9f91..6e17691 100644 --- a/serial/test.py +++ b/serial/test.py @@ -73,6 +73,9 @@ EXAMPLE_TEXT_REPRESENTATIONS = [ (tags.TaggedObject(tags.INT32, -2), '-2i32'), (tags.TaggedObject(tags.INT64, -2), '-2i64'), (tags.TaggedObject(tags.BINARY, b'\x42\xde\xad\xbe\xef'), 'bin"42deadbeef"'), + (tags.TaggedObject(tags.UTF8, 'Lol!'), 'utf8"Lol!"'), + (tags.TaggedObject(tags.UTF16, 'かわ'), 'utf16"かわ"'), + (tags.TaggedObject(tags.UTF32, '漢'), 'utf32"漢"'), ] class TextSerializeTests(unittest.TestCase):