Example #1
0
 def testChars(self):
   """Tests to encode a multi character prefix."""
   label = 'ab'
   bytes = [ ord('b'), ord('a') ]
   self.assertEqual(make_dafsa.encode_prefix(label), bytes)
 def testChars(self):
   """Tests to encode a multi character prefix."""
   label = 'ab'
   bytes = [ ord('b'), ord('a') ]
   self.assertEqual(make_dafsa.encode_prefix(label), bytes)
Example #3
0
 def testChar(self):
   """Tests to encode a single character prefix."""
   label = 'a'
   bytes = [ ord('a') ]
   self.assertEqual(make_dafsa.encode_prefix(label), bytes)
 def testChar(self):
   """Tests to encode a single character prefix."""
   label = 'a'
   bytes = [ ord('a') ]
   self.assertEqual(make_dafsa.encode_prefix(label), bytes)