projects
/
ton
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed support for float and double, use autotag to tag in serializers
[ton]
/
test_tags.py
diff --git
a/test_tags.py
b/test_tags.py
index
93c58e0
..
ef48a37
100644
(file)
--- a/
test_tags.py
+++ b/
test_tags.py
@@
-193,6
+193,12
@@
class AutoTagTests(unittest.TestCase):
tags.TaggedObject(tag = tags.UTF32, value = 'Hello, world'),
)
tags.TaggedObject(tag = tags.UTF32, value = 'Hello, world'),
)
+ def test_tags_bytes(self):
+ self.assertEqual(
+ tags.autotag(b'\xde\xad\xbe\xef'),
+ tags.TaggedObject(tag = tags.BINARY, value = b'\xde\xad\xbe\xef'),
+ )
+
def test_tags_list(self):
self.assertEqual(
tags.autotag([1,2,3]),
def test_tags_list(self):
self.assertEqual(
tags.autotag([1,2,3]),