Esempio n. 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)
Esempio n. 2
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)
Esempio n. 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)
Esempio n. 4
0
 def testChar(self):
   """Tests to encode a single character prefix."""
   label = 'a'
   bytes = [ ord('a') ]
   self.assertEqual(make_dafsa.encode_prefix(label), bytes)