Exemplo n.º 1
0
 def testNegative(self):
     self.assertFalse(nfsmsim("aabc", 1, self.edges, self.accepting))
     self.assertFalse(nfsmsim("", 1, self.edges, self.accepting))
Exemplo n.º 2
0
 def testPositive(self):
     self.assertTrue(nfsmsim("abc", 1, self.edges, self.accepting))
     self.assertTrue(nfsmsim("aaa", 1, self.edges, self.accepting))
     self.assertTrue(nfsmsim("abbbc", 1, self.edges, self.accepting))