1. Killian De Smedt
  2. py3_protobuf

Commits

Killian De Smedt  committed 9574368

Made test for tags >15

  • Participants
  • Parent commits 9f81291
  • Branches default

Comments (0)

Files changed (1)

File protobuf_test/test_lexer.py

View file
         """
         Test = message_from_string(msg).Test
         self.assertEqual(Test(test=150).serialize_to_string(), b'\x08\x96\x01')
-
+        
+    def test_longtag(self):
+        msg = """
+        message Test {
+            optional int32 test = 1000;
+        }
+        """
+        Test = message_from_string(msg).Test
+        self.assertEqual(Test(test=150).serialize_to_string(), b'\xc0\x3e\x96\x01')
 
     def test_package(self):
         msg = """