コード例 #1
0
 def testChars(self):
   """Tests to encode a multi character label."""
   label = 'ab'
   bytes = [ ord('b') + 0x80, ord('a') ]
   self.assertEqual(make_dafsa.encode_label(label), bytes)
コード例 #2
0
 def testChars(self):
   """Tests to encode a multi character label."""
   label = 'ab'
   bytes = [ ord('b') + 0x80, ord('a') ]
   self.assertEqual(make_dafsa.encode_label(label), bytes)
コード例 #3
0
 def testChar(self):
   """Tests to encode a single character label."""
   label = 'a'
   bytes = [ ord('a') + 0x80 ]
   self.assertEqual(make_dafsa.encode_label(label), bytes)
コード例 #4
0
 def testChar(self):
   """Tests to encode a single character label."""
   label = 'a'
   bytes = [ ord('a') + 0x80 ]
   self.assertEqual(make_dafsa.encode_label(label), bytes)